/* * wizard.h * * Copyright 2008 gpg4usb-team * * 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 */ #include "keygendialog.h" #ifndef WIZARD_H #define WIZARD_H #include 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