Mercurial > trustbridge
comparison 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 |
comparison
equal
deleted
inserted
replaced
1370:289cb3554c55 | 1371:23df332b2a4c |
---|---|
21 #include <QPushButton> | 21 #include <QPushButton> |
22 #include <QLabel> | 22 #include <QLabel> |
23 #include <QCheckBox> | 23 #include <QCheckBox> |
24 #include <QScrollArea> | 24 #include <QScrollArea> |
25 #include <QProcess> | 25 #include <QProcess> |
26 #include <QDateTime> | |
26 | 27 |
27 #include "downloader.h" | 28 #include "downloader.h" |
28 #include "certificatelist.h" | 29 #include "certificatelist.h" |
29 #include "certificatelistwidget.h" | 30 #include "certificatelistwidget.h" |
30 #include "textoverlaybutton.h" | 31 #include "textoverlaybutton.h" |
52 * In tray mode this window is not shown and only shows | 53 * In tray mode this window is not shown and only shows |
53 * notification messages if there is some actionable state | 54 * notification messages if there is some actionable state |
54 * reached. If tray mode is true it also exits after | 55 * reached. If tray mode is true it also exits after |
55 * an update check. | 56 * an update check. |
56 * | 57 * |
58 * The sigDt parameter is used to determine if a software | |
59 * update should be installed. | |
60 * | |
57 * @param[in] trayMode set the tray mode | 61 * @param[in] trayMode set the tray mode |
62 * @param[in] sigDt the datetime when the binary was signed. | |
58 * */ | 63 * */ |
59 MainWindow(bool trayMode); | 64 MainWindow(bool trayMode, const QDateTime& sigDt = QDateTime()); |
60 | 65 |
61 /**@brief set the current message to be shown | 66 /**@brief set the current message to be shown |
62 * | 67 * |
63 * The message will be shown at intervals in the system tray | 68 * The message will be shown at intervals in the system tray |
64 * or as a messagebox if no stystemtray is available. | 69 * or as a messagebox if no stystemtray is available. |
378 | 383 |
379 QPushButton *mInstallButton; | 384 QPushButton *mInstallButton; |
380 int mChangeCount; | 385 int mChangeCount; |
381 bool mManualDetailsShown; | 386 bool mManualDetailsShown; |
382 int mFailedConnections; | 387 int mFailedConnections; |
388 QDateTime mSigDt; | |
383 }; | 389 }; |
384 | 390 |
385 #endif // MAINWINDOW_H | 391 #endif // MAINWINDOW_H |