[PATCH 1 of 4] Emit a signal for last modified date in downloader

Wald Commits scm-commit at wald.intevation.org
Thu Apr 24 14:56:26 CEST 2014


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1398344064 -7200
# Node ID 5834b340c54ce5f88b2790a4c9da5fba244a76b0
# Parent  a055847decbc9a7e81f7a0d5de30554e2f4f9235
Emit a signal for last modified date in downloader.

diff -r a055847decbc -r 5834b340c54c ui/downloader.cpp
--- 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";
diff -r a055847decbc -r 5834b340c54c ui/downloader.h
--- 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


More information about the Trustbridge-commits mailing list