Mercurial > trustbridge
diff ui/mainwindow.cpp @ 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 | 1f27d6db5ee3 |
line wrap: on
line diff
--- 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&)));