aheinecke@404: /* Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik aheinecke@404: * Software engineering by Intevation GmbH aheinecke@404: * aheinecke@404: * This file is Free Software under the GNU GPL (v>=2) aheinecke@404: * and comes with ABSOLUTELY NO WARRANTY! aheinecke@404: * See LICENSE.txt for details. aheinecke@404: */ rrenkert@367: #ifndef CREATECERTLISTDIALOG_H rrenkert@367: #define CREATECERTLISTDIALOG_H rrenkert@367: rrenkert@367: #include rrenkert@367: #include rrenkert@367: #include aheinecke@454: aheinecke@454: #include rrenkert@367: /** rrenkert@367: * @file createinstallerdialog.h rrenkert@367: * @brief The dialog to show settings and create an installer. rrenkert@367: */ rrenkert@367: rrenkert@367: class QListWidget; aheinecke@454: class AdministratorWindow; rrenkert@367: rrenkert@367: class CreateCertListDialog : public QDialog rrenkert@367: { rrenkert@367: Q_OBJECT rrenkert@367: public: rrenkert@367: /** @brief Create a dialog showing settings for the create certificate list rrenkert@367: * process rrenkert@367: * */ aheinecke@454: CreateCertListDialog(AdministratorWindow *parent); rrenkert@367: rrenkert@367: private: rrenkert@367: void setupGUI(); rrenkert@367: rrenkert@367: QLineEdit *mCertFile; rrenkert@367: QLineEdit *mSaveFile; aheinecke@454: AdministratorWindow *mAdminWindow; aheinecke@454: aheinecke@454: pk_context *mPk; rrenkert@367: rrenkert@367: private slots: aheinecke@454: /** @brief Open the certificate selection dialog and parse the certificate aheinecke@454: * aheinecke@454: * If the certificate can be parsed mPk is replaced by the new key aheinecke@454: * otherwise an error message is shown to the user. aheinecke@454: */ rrenkert@367: void openCertificateSelect(); rrenkert@367: void openSaveLocation(); aheinecke@454: /** @brief create a valid certificate list file aheinecke@454: * aheinecke@454: * The contents of the certificate list is the certificatelist aheinecke@454: * of the adminWindow. It is signed with the currently aheinecke@454: * loaded certificate in mPk. On errors the user is aheinecke@454: * informed with showErrorMessage */ rrenkert@367: void createList(); aheinecke@454: aheinecke@454: /** @brief show an error message with QMessageBox */ aheinecke@454: void showErrorMessage(const QString&msg); rrenkert@367: }; rrenkert@367: rrenkert@367: #endif // CREATECERTLISTDIALOG_H