Mercurial > trustbridge
diff 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 |
line wrap: on
line diff
--- a/ui/createcertlistdialog.h Wed Apr 23 15:34:53 2014 +0000 +++ b/ui/createcertlistdialog.h Wed Apr 23 15:48:08 2014 +0000 @@ -12,6 +12,8 @@ #include <QMainWindow> #include <QLineEdit> +#include "certificate.h" + #include <polarssl/pk.h> /** * @file createinstallerdialog.h @@ -31,6 +33,19 @@ CreateCertListDialog(AdministratorWindow *parent); ~CreateCertListDialog(); + /** @brief write a signed certificate list. + * + * @param [in] certs The certificates to include in the list + * @param [in] filePath The path where the list should be written to + * @param [in] listDate The date to write in the list + * @param [in] pk The private key to sign with. + * + * @returns true on success false on error. + */ + static bool writeList(const QList<Certificate>& certs, + const QString& filePath, const QDateTime& listDate, pk_context *pk); + + private: void setupGUI();