Mercurial > trustbridge
comparison ui/createcertlistdialog.h @ 466:0d71ce440bcc
Factor out list creation to make it more testable
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 23 Apr 2014 15:48:08 +0000 |
parents | 88dfe16a0bb9 |
children | 78798d3af8f0 |
comparison
equal
deleted
inserted
replaced
465:88dfe16a0bb9 | 466:0d71ce440bcc |
---|---|
9 #define CREATECERTLISTDIALOG_H | 9 #define CREATECERTLISTDIALOG_H |
10 | 10 |
11 #include <QDialog> | 11 #include <QDialog> |
12 #include <QMainWindow> | 12 #include <QMainWindow> |
13 #include <QLineEdit> | 13 #include <QLineEdit> |
14 | |
15 #include "certificate.h" | |
14 | 16 |
15 #include <polarssl/pk.h> | 17 #include <polarssl/pk.h> |
16 /** | 18 /** |
17 * @file createinstallerdialog.h | 19 * @file createinstallerdialog.h |
18 * @brief The dialog to show settings and create an installer. | 20 * @brief The dialog to show settings and create an installer. |
28 /** @brief Create a dialog showing settings for the create certificate list | 30 /** @brief Create a dialog showing settings for the create certificate list |
29 * process | 31 * process |
30 * */ | 32 * */ |
31 CreateCertListDialog(AdministratorWindow *parent); | 33 CreateCertListDialog(AdministratorWindow *parent); |
32 ~CreateCertListDialog(); | 34 ~CreateCertListDialog(); |
35 | |
36 /** @brief write a signed certificate list. | |
37 * | |
38 * @param [in] certs The certificates to include in the list | |
39 * @param [in] filePath The path where the list should be written to | |
40 * @param [in] listDate The date to write in the list | |
41 * @param [in] pk The private key to sign with. | |
42 * | |
43 * @returns true on success false on error. | |
44 */ | |
45 static bool writeList(const QList<Certificate>& certs, | |
46 const QString& filePath, const QDateTime& listDate, pk_context *pk); | |
47 | |
33 | 48 |
34 private: | 49 private: |
35 void setupGUI(); | 50 void setupGUI(); |
36 | 51 |
37 QLineEdit *mKeyFile; | 52 QLineEdit *mKeyFile; |