# HG changeset patch # User Andre Heinecke # Date 1395228833 0 # Node ID 7e304573ebd1780dd058450143027e8ad30c9da2 # Parent f22a99f7cb691bc7942363ab8451dafc991a43ef Add some testing hacks for interactive testing diff -r f22a99f7cb69 -r 7e304573ebd1 ui/downloader.cpp --- 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; } diff -r f22a99f7cb69 -r 7e304573ebd1 ui/mainwindow.cpp --- 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&)));