1 | /* This file is part of the KDE libraries |
2 | Copyright (C) 2000 David Faure <faure@kde.org> |
3 | |
4 | This library is free software; you can redistribute it and/or |
5 | modify it under the terms of the GNU Library General Public |
6 | License version 2 as published by the Free Software Foundation. |
7 | |
8 | This library is distributed in the hope that it will be useful, |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
11 | Library General Public License for more details. |
12 | |
13 | You should have received a copy of the GNU Library General Public License |
14 | along with this library; see the file COPYING.LIB. If not, write to |
15 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
16 | Boston, MA 02110-1301, USA. |
17 | */ |
18 | |
19 | #ifndef KIO_SKIPDIALOG_H |
20 | #define KIO_SKIPDIALOG_H |
21 | |
22 | #include <kio/kio_export.h> |
23 | #include <kdialog.h> |
24 | |
25 | class QWidget; |
26 | |
27 | namespace KIO { |
28 | |
29 | enum SkipDialog_Result { S_SKIP = 1, S_AUTO_SKIP = 2, S_CANCEL = 0 }; |
30 | |
31 | class SkipDialogPrivate; |
32 | /** |
33 | * @internal |
34 | */ |
35 | class KIO_EXPORT SkipDialog : public KDialog |
36 | { |
37 | Q_OBJECT |
38 | public: |
39 | SkipDialog( QWidget *parent, bool _multi, const QString& _error_text ); |
40 | ~SkipDialog(); |
41 | |
42 | private Q_SLOTS: |
43 | void cancelPressed(); |
44 | void skipPressed(); |
45 | void autoSkipPressed(); |
46 | |
47 | Q_SIGNALS: |
48 | void result( SkipDialog *_this, int _button ); |
49 | |
50 | private: |
51 | SkipDialogPrivate * const d; |
52 | }; |
53 | |
54 | } |
55 | #endif |
56 | |