1 | /* This file is part of the KDE project |
2 | |
3 | Copyright (C) 2008 Omat Holding B.V. <info@omat.nl> |
4 | |
5 | This program is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU General Public |
7 | License as published by the Free Software Foundation; either |
8 | version 2 of the License, or (at your option) any later version. |
9 | |
10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | General Public License for more details. |
14 | |
15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
18 | */ |
19 | |
20 | #ifndef RESTOREASSISTANT_H |
21 | #define RESTOREASSISTANT_H |
22 | |
23 | #include <KAssistantDialog> |
24 | class Restore; |
25 | class QLabel; |
26 | class QPushButton; |
27 | |
28 | /** |
29 | * Use this class to create a backup assistant. |
30 | */ |
31 | class RestoreAssistant : public KAssistantDialog |
32 | { |
33 | Q_OBJECT |
34 | public: |
35 | /** |
36 | * Constructor |
37 | */ |
38 | RestoreAssistant( QWidget* ); |
39 | |
40 | private Q_SLOTS: |
41 | void slotSelectFile( ); |
42 | void slotPageChanged( KPageWidgetItem*, KPageWidgetItem* ); |
43 | void slotRestoreComplete( bool ok ); |
44 | |
45 | private: |
46 | Restore *m_restore; |
47 | KPageWidgetItem *m_page1; |
48 | KPageWidgetItem *m_page2; |
49 | QLabel *m_restoreProgressLabel; |
50 | QPushButton *m_selectFileButton; |
51 | QString m_filename; |
52 | }; |
53 | |
54 | #endif |
55 | |
56 | |