comparison ui/mainwindow.h @ 551:15121735805e

Start implementation of software update installation
author Andre Heinecke <aheinecke@intevation.de>
date Tue, 20 May 2014 16:40:28 +0000
parents dec797c7230c
children dd8a295d5b4d
comparison
equal deleted inserted replaced
550:0ec3516bf65c 551:15121735805e
52 52
53 enum CurrentState { 53 enum CurrentState {
54 BeforeDownload, 54 BeforeDownload,
55 NewListAvailable, 55 NewListAvailable,
56 NewSoftwareAvailable, 56 NewSoftwareAvailable,
57 DownloadingSW,
57 TransferError, 58 TransferError,
58 NothingChanged 59 NothingChanged
59 }; 60 };
60 CurrentState getState() {return mCurState;} 61 CurrentState getState() {return mCurState;}
61 void setState(CurrentState state) {mCurState = state;} 62 void setState(CurrentState state) {mCurState = state;}
74 void showDetails(QListWidgetItem*); 75 void showDetails(QListWidgetItem*);
75 void resizeButtons(); 76 void resizeButtons();
76 void installerError(const QString& errMsg); 77 void installerError(const QString& errMsg);
77 void installerSuccess(); 78 void installerSuccess();
78 void installCerts(); 79 void installCerts();
79 void newSWAvailable(const QString& fileName, const QDateTime& modDate); 80
81 /* @brief Execute the file fileName to install the softwareupdate.
82 *
83 * Once the installer process is started this function terminates
84 * the application. */
85 void installNewSW(const QString& fileName, const QDateTime& modDate);
80 86
81 void saveAutoUpdate(int state); 87 void saveAutoUpdate(int state);
82 void saveAutoStart(int state); 88 void saveAutoStart(int state);
83 89
84 void lookUpDateForVersion(); 90 /** @brief get the last modified date on the download server for
85 void setLastModifiedDate(const QDateTime &date); 91 * the current version.
92 *
93 * After the initial installation this function can be used to
94 * determine the DateTime that corresponds to the currently installed
95 * version on the download server.
96 *
97 * Calls setLastModifiedSWDate on success. Otherwise downloaderError
98 * is triggered. */
99 void getLastModForCurrentVersion();
100
101 /** @brief set the last modified software date/time
102 *
103 * The last modifiedSWDate is the corresponding last modified
104 * timestamp from the download server vor the currently installed version.
105 */
106 void setLastModifiedSWDate(const QDateTime &date);
86 107
87 /** @brief saves the currently unselected certificates 108 /** @brief saves the currently unselected certificates
88 * 109 *
89 * This creates / updates a qsettings section that 110 * This creates / updates a qsettings section that
90 * [unselected] that contains the certificates that 111 * [unselected] that contains the certificates that

http://wald.intevation.org/projects/trustbridge/