diff options
Diffstat (limited to 'wizard.h')
-rw-r--r-- | wizard.h | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/wizard.h b/wizard.h new file mode 100644 index 0000000..beccd78 --- /dev/null +++ b/wizard.h @@ -0,0 +1,88 @@ +/* + * wizard.h + * + * Copyright 2008 gpg4usb-team <[email protected]> + * + * This file is part of gpg4usb. + * + * Gpg4usb is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Gpg4usb is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with gpg4usb. If not, see <http://www.gnu.org/licenses/> + */ + +#include "keygendialog.h" + +#ifndef WIZARD_H +#define WIZARD_H + +#include <QWizard> + +class QCheckBox; +class QLabel; +class QLineEdit; +class QRadioButton; + +class Wizard : public QWizard +{ + Q_OBJECT + +public: + Wizard(GpgME::GpgContext *ctx, QWidget *parent = 0); + +private: + GpgME::GpgContext *mCtx; +}; + +class IntroPage : public QWizardPage +{ + Q_OBJECT + +public: + IntroPage(QWidget *parent = 0); + QLabel *topLabel; + + int nextId() const; +}; + +class KeyGenPage : public QWizardPage +{ + Q_OBJECT + +public: + KeyGenPage(GpgME::GpgContext *ctx, QWidget *parent = 0); + int nextId() const; + +private slots: + void generateKeyDialog(); + void showKeyGeneratedMessage(); + +private: + QLabel *topLabel; + QPushButton *createKeyButton; + GpgME::GpgContext *mCtx; + QVBoxLayout *layout; +}; + +class ConclusionPage : public QWizardPage +{ + Q_OBJECT + +public: + ConclusionPage(QWidget *parent = 0); + int nextId() const; + +private: + QLabel *bottomLabel; + QCheckBox *showWizardCheckBox; +}; + +#endif |