Mercurial > trustbridge
diff ui/mainwindow.h @ 1371:23df332b2a4c
(issue179) Read install signature timestamp from config
This also changes the way the sigDt is propgated to the
MainWindow. It no longer uses the settings but hands
it over as a parameter directly.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 24 Nov 2014 15:48:49 +0100 |
parents | 64f812a63de6 |
children | 00fcb9c4d16b |
line wrap: on
line diff
--- a/ui/mainwindow.h Mon Nov 24 14:43:36 2014 +0100 +++ b/ui/mainwindow.h Mon Nov 24 15:48:49 2014 +0100 @@ -23,6 +23,7 @@ #include <QCheckBox> #include <QScrollArea> #include <QProcess> +#include <QDateTime> #include "downloader.h" #include "certificatelist.h" @@ -54,9 +55,13 @@ * reached. If tray mode is true it also exits after * an update check. * + * The sigDt parameter is used to determine if a software + * update should be installed. + * * @param[in] trayMode set the tray mode + * @param[in] sigDt the datetime when the binary was signed. * */ - MainWindow(bool trayMode); + MainWindow(bool trayMode, const QDateTime& sigDt = QDateTime()); /**@brief set the current message to be shown * @@ -380,6 +385,7 @@ int mChangeCount; bool mManualDetailsShown; int mFailedConnections; + QDateTime mSigDt; }; #endif // MAINWINDOW_H