Mercurial > trustbridge
diff 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 |
line wrap: on
line diff
--- a/ui/mainwindow.h Tue May 20 16:39:51 2014 +0000 +++ b/ui/mainwindow.h Tue May 20 16:40:28 2014 +0000 @@ -54,6 +54,7 @@ BeforeDownload, NewListAvailable, NewSoftwareAvailable, + DownloadingSW, TransferError, NothingChanged }; @@ -76,13 +77,33 @@ void installerError(const QString& errMsg); void installerSuccess(); void installCerts(); - void newSWAvailable(const QString& fileName, const QDateTime& modDate); + + /* @brief Execute the file fileName to install the softwareupdate. + * + * Once the installer process is started this function terminates + * the application. */ + void installNewSW(const QString& fileName, const QDateTime& modDate); void saveAutoUpdate(int state); void saveAutoStart(int state); - void lookUpDateForVersion(); - void setLastModifiedDate(const QDateTime &date); + /** @brief get the last modified date on the download server for + * the current version. + * + * After the initial installation this function can be used to + * determine the DateTime that corresponds to the currently installed + * version on the download server. + * + * Calls setLastModifiedSWDate on success. Otherwise downloaderError + * is triggered. */ + void getLastModForCurrentVersion(); + + /** @brief set the last modified software date/time + * + * The last modifiedSWDate is the corresponding last modified + * timestamp from the download server vor the currently installed version. + */ + void setLastModifiedSWDate(const QDateTime &date); /** @brief saves the currently unselected certificates *