Mercurial > trustbridge
diff ui/createcertlistdialog.h @ 465:88dfe16a0bb9
Implement certificatelist saving
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 23 Apr 2014 15:34:53 +0000 |
parents | efd1bd85112f |
children | 0d71ce440bcc |
line wrap: on
line diff
--- a/ui/createcertlistdialog.h Wed Apr 23 15:33:42 2014 +0000 +++ b/ui/createcertlistdialog.h Wed Apr 23 15:34:53 2014 +0000 @@ -29,16 +29,32 @@ * process * */ CreateCertListDialog(AdministratorWindow *parent); + ~CreateCertListDialog(); private: void setupGUI(); - QLineEdit *mCertFile; - QLineEdit *mSaveFile; + QLineEdit *mKeyFile; + QLineEdit *mSaveDir; AdministratorWindow *mAdminWindow; pk_context *mPk; + /** @brief show an error message with QMessageBox + * + * @param [in] msg The message to show + */ + void showErrorMessage(const QString &msg); + + /** @brief load a file into mPk + * + * If the file is not a valid key or an error + * occurs mPk will be NULL after a call to this function. + * + * @param [in] the file to load + */ + void loadKeyFile(const QString& fileName); + private slots: /** @brief Open the certificate selection dialog and parse the certificate * @@ -49,14 +65,11 @@ void openSaveLocation(); /** @brief create a valid certificate list file * - * The contents of the certificate list is the certificatelist - * of the adminWindow. It is signed with the currently + * The contents of the certificate list are the certificates + * shown in the adminWindow. It is signed with the currently * loaded certificate in mPk. On errors the user is * informed with showErrorMessage */ void createList(); - - /** @brief show an error message with QMessageBox */ - void showErrorMessage(const QString&msg); }; #endif // CREATECERTLISTDIALOG_H