1 | /* This file is part of the KDE libraries |
2 | Copyright (C) 2004 George Staikos <staikos@kde.org> |
3 | |
4 | This program is free software; you can redistribute it and/or modify |
5 | it under the terms of the GNU General Public License as published by |
6 | the Free Software Foundation; either version 2 of the License, or |
7 | (at your option) any later version. |
8 | |
9 | This program is distributed in the hope that it will be useful, |
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | GNU General Public License for more details. |
13 | |
14 | You should have received a copy of the GNU General Public License |
15 | along with this program; if not, write to the Free Software |
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
17 | */ |
18 | |
19 | #ifndef KWALLETWIZARD_H |
20 | #define KWALLETWIZARD_H |
21 | |
22 | #include <QWizard> |
23 | #ifdef HAVE_QGPGME |
24 | #include <gpgme++/key.h> |
25 | #endif |
26 | |
27 | class PageGpgKey; |
28 | class PagePassword; |
29 | class PageIntro; |
30 | |
31 | class KWalletWizard : public QWizard |
32 | { |
33 | Q_OBJECT |
34 | public: |
35 | |
36 | enum WizardType |
37 | { |
38 | Basic, |
39 | Advanced |
40 | }; |
41 | |
42 | static const int PageIntroId = 0; |
43 | static const int PagePasswordId = 1; |
44 | #ifdef HAVE_QGPGME |
45 | static const int PageGpgKeyId =2; |
46 | #endif |
47 | static const int PageOptionsId = 3; |
48 | static const int PageExplanationId = 4; |
49 | |
50 | KWalletWizard( QWidget *parent = 0 ); |
51 | |
52 | WizardType wizardType() const; |
53 | |
54 | #ifdef HAVE_QGPGME |
55 | GpgME::Key gpgKey() const; |
56 | #endif // HAVE_QGPGME |
57 | |
58 | protected: |
59 | virtual void initializePage(int id); |
60 | |
61 | protected Q_SLOTS: |
62 | void passwordPageUpdate(); |
63 | |
64 | private: |
65 | PageIntro *m_pageIntro; |
66 | PagePassword *m_pagePasswd; |
67 | #ifdef HAVE_QGPGME |
68 | PageGpgKey *m_pageGpgKey; |
69 | #endif |
70 | }; |
71 | |
72 | #endif |
73 | |