Mercurial > trustbridge
comparison ui/mainwindow.h @ 1373:00fcb9c4d16b
(issue179) Handle SW verify failures and try to redownload the update
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 24 Nov 2014 16:46:08 +0100 |
parents | 23df332b2a4c |
children |
comparison
equal
deleted
inserted
replaced
1372:96f640c88d10 | 1373:00fcb9c4d16b |
---|---|
118 void showMessage(); | 118 void showMessage(); |
119 /** @brief User has clicked on the message notification. */ | 119 /** @brief User has clicked on the message notification. */ |
120 void iconActivated(QSystemTrayIcon::ActivationReason reason); | 120 void iconActivated(QSystemTrayIcon::ActivationReason reason); |
121 /** @brief Check if new updates are available. | 121 /** @brief Check if new updates are available. |
122 * | 122 * |
123 * @param[in] downloadSW wether or not new software should be downloaded. | 123 * Wether the software should be downloaded or not is determined by |
124 */ | 124 * the mDownloadSWAccepted value. |
125 void checkUpdates(bool downloadSW = false); | 125 */ |
126 void checkUpdates(); | |
126 /**@brief parse a new certificate list and update the UI*/ | 127 /**@brief parse a new certificate list and update the UI*/ |
127 void handleNewList(const QString& fileName, const QDateTime& modDate); | 128 void handleNewList(const QString& fileName, const QDateTime& modDate); |
128 /**@brief handle a Software update, update state and inform the user */ | 129 /**@brief handle a Software update, update state and inform the user */ |
129 void handleNewSW(const QString& fileName, const QDateTime& modDate); | 130 void handleNewSW(const QString& fileName, const QDateTime& modDate); |
130 /**@brief an error occured while downloading.*/ | 131 /**@brief an error occured while downloading.*/ |
292 * @param [in] reset weather or not the error count should be reset. | 293 * @param [in] reset weather or not the error count should be reset. |
293 * | 294 * |
294 **/ | 295 **/ |
295 void handleLTE(LongTimeErrors lte, bool reset = false); | 296 void handleLTE(LongTimeErrors lte, bool reset = false); |
296 | 297 |
298 /** @brief schedule an update check retry or close the application. | |
299 * | |
300 * An update check retry is scheduled base on getNextUpdateInterval. | |
301 * If getNextUpdateInterval returns a negative value the application | |
302 * is closed if the parameter close is true. | |
303 * | |
304 * This function also increases the failed connection count. | |
305 */ | |
306 void scheduleFailureRetryOrClose(bool close); | |
307 | |
297 /** @brief note a verify error in the settings and show a message | 308 /** @brief note a verify error in the settings and show a message |
298 * | 309 * |
299 * Saves a software verify error in the settings and notifies the | 310 * Saves a software verify error in the settings and notifies the |
300 * user if necessary.*/ | 311 * user if necessary.*/ |
301 void swVerifyError(); | 312 void swVerifyError(); |
384 QPushButton *mInstallButton; | 395 QPushButton *mInstallButton; |
385 int mChangeCount; | 396 int mChangeCount; |
386 bool mManualDetailsShown; | 397 bool mManualDetailsShown; |
387 int mFailedConnections; | 398 int mFailedConnections; |
388 QDateTime mSigDt; | 399 QDateTime mSigDt; |
400 bool mDownloadSWAccepted; | |
389 }; | 401 }; |
390 | 402 |
391 #endif // MAINWINDOW_H | 403 #endif // MAINWINDOW_H |