Mercurial > trustbridge
changeset 72:7e304573ebd1
Add some testing hacks for interactive testing
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Wed, 19 Mar 2014 11:33:53 +0000 |
parents | f22a99f7cb69 |
children | 5c616934cbe4 |
files | ui/downloader.cpp ui/mainwindow.cpp |
diffstat | 2 files changed, 13 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ui/downloader.cpp Wed Mar 19 11:32:25 2014 +0000 +++ b/ui/downloader.cpp Wed Mar 19 11:33:53 2014 +0000 @@ -214,7 +214,7 @@ remoteModList = getLastModifiedHeader(mResourceList); if (!remoteModSW.isValid() || !remoteModList.isValid()) { - qDebug() << "Could not read headers"; + qDebug() << "Could not parse headers"; return; }
--- a/ui/mainwindow.cpp Wed Mar 19 11:32:25 2014 +0000 +++ b/ui/mainwindow.cpp Wed Mar 19 11:33:53 2014 +0000 @@ -14,6 +14,10 @@ // something to say #define NAG_INTERVAL_MINUTES 2 +#define SERVER_URL "https://files.kolab.org:443" +#define LIST_RESOURCE "/incoming/aheinecke/test" +#define SW_RESOURCE "/incoming/aheinecke/test" + #include "certificatelist.h" #include "downloader.h" #include "listupdatedialog.h" @@ -132,8 +136,14 @@ QDateTime listInstalledLastMod = mSettings.value("List/installedDate").toDateTime(); QDateTime swInstalledLastMod = mSettings.value("Software/installedDate").toDateTime(); - Downloader* downloader = new Downloader(this, QString::fromLatin1("https://files.kolab.org"), - QByteArray(), swInstalledLastMod, listInstalledLastMod); + Downloader* downloader = new Downloader(this, + QString::fromLatin1(SERVER_URL), + QByteArray(), + QDateTime::currentDateTime(), +// swInstalledLastMod, + listInstalledLastMod, + QString::fromLatin1(SW_RESOURCE), + QString::fromLatin1(LIST_RESOURCE)); connect(downloader, SIGNAL(newListAvailable(const QString&, const QDateTime&)), this, SLOT(handleNewList(const QString&, const QDateTime&)));