Mercurial > trustbridge
changeset 485:5834b340c54c
Emit a signal for last modified date in downloader.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Thu, 24 Apr 2014 14:54:24 +0200 |
parents | a055847decbc |
children | fa56a9403939 |
files | ui/downloader.cpp ui/downloader.h |
diffstat | 2 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ui/downloader.cpp Thu Apr 24 12:45:11 2014 +0200 +++ b/ui/downloader.cpp Thu Apr 24 14:54:24 2014 +0200 @@ -214,6 +214,7 @@ emit progress(tr("Connected"), 1, -1); remoteModSW = getLastModifiedHeader(mResourceSW); + emit lastModifiedDate(remoteModSW); if (!remoteModSW.isValid()) { qDebug() << "Could not parse headers for Software";
--- a/ui/downloader.h Thu Apr 24 12:45:11 2014 +0200 +++ b/ui/downloader.h Thu Apr 24 14:54:24 2014 +0200 @@ -149,5 +149,12 @@ * @param[out] errorCode: ErrorCode of this error. */ void error(const QString &message, SSLConnection::ErrorCode error); + + /** + * @brief Found the last modified date for software. + * + * @param[out] date The last modified date. + */ + void lastModifiedDate(const QDateTime &date); }; #endif