2 Copyright (c) 2012-2013 Montel Laurent <montel@kde.org>
4 This program is free software; you can redistribute it and/or modify it
5 under the terms of the GNU General Public License, version 2, as
6 published by the Free Software Foundation.
8 This program is distributed in the hope that it will be useful, but
9 WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 General Public License for more details.
13 You should have received a copy of the GNU General Public License along
14 with this program; if not, write to the Free Software Foundation, Inc.,
15 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 #ifndef IMPORTWIZARD_H
19 #define IMPORTWIZARD_H
21 #include "abstractimporter.h"
23 #include <kapplication.h>
24 #include <KAssistantDialog>
26 class KPageWidgetItem
;
27 class SelectProgramPage
;
28 class SelectComponentPage
;
30 class ImportFilterPage
;
31 class ImportSettingPage
;
32 class ImportAddressbookPage
;
33 class ImportFinishPage
;
34 class ImportCalendarPage
;
35 class AbstractImporter
;
37 class ImportWizard
: public KAssistantDialog
{
40 explicit ImportWizard( QWidget
* parent
=0);
47 ImportMailPage
* importMailPage() const;
48 ImportFilterPage
* importFilterPage() const;
49 ImportAddressbookPage
*importAddressBookPage() const;
50 ImportSettingPage
*importSettingPage() const;
51 ImportFinishPage
*importFinishPage() const;
52 ImportCalendarPage
*importCalendarPage() const;
54 void addFinishInfo( const QString
& log
);
55 void addFinishError( const QString
& log
);
58 void slotProgramSelected(const QString
& program
);
59 void slotImportMailsClicked();
60 void slotImportFiltersClicked();
61 void slotProgramDoubleClicked();
62 void slotAtLeastOneComponentSelected( bool b
);
63 void slotImportSettingsClicked();
64 void slotImportAddressbookClicked();
65 void slotImportCalendarClicked();
68 void addImportModule(AbstractImporter
*);
70 void setAppropriatePage(AbstractImporter::TypeSupportedOptions options
);
71 void enableAllImportButton();
73 QMap
<QString
, AbstractImporter
*> mlistImport
;
75 AbstractImporter
*mSelectedPim
;
77 KPageWidgetItem
*mPage1
;
78 KPageWidgetItem
*mPage2
;
79 KPageWidgetItem
*mPage3
;
80 KPageWidgetItem
*mPage4
;
81 KPageWidgetItem
*mPage5
;
82 KPageWidgetItem
*mPage6
;
83 KPageWidgetItem
*mPage7
;
84 KPageWidgetItem
*mPage8
;
86 SelectProgramPage
*mSelectProgramPage
;
87 SelectComponentPage
*mSelectComponentPage
;
88 ImportMailPage
*mImportMailPage
;
89 ImportFilterPage
*mImportFilterPage
;
90 ImportSettingPage
*mImportSettingPage
;
91 ImportAddressbookPage
*mImportAddressbookPage
;
92 ImportFinishPage
*mImportFinishPage
;
93 ImportCalendarPage
*mImportCalendarPage
;
96 #endif /* IMPORTWIZARD_H */