Mercurial > trustbridge
comparison 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 |
comparison
equal
deleted
inserted
replaced
71:f22a99f7cb69 | 72:7e304573ebd1 |
---|---|
11 #include <QTimer> | 11 #include <QTimer> |
12 | 12 |
13 // The amount of time in minutes stay silent if we have | 13 // The amount of time in minutes stay silent if we have |
14 // something to say | 14 // something to say |
15 #define NAG_INTERVAL_MINUTES 2 | 15 #define NAG_INTERVAL_MINUTES 2 |
16 | |
17 #define SERVER_URL "https://files.kolab.org:443" | |
18 #define LIST_RESOURCE "/incoming/aheinecke/test" | |
19 #define SW_RESOURCE "/incoming/aheinecke/test" | |
16 | 20 |
17 #include "certificatelist.h" | 21 #include "certificatelist.h" |
18 #include "downloader.h" | 22 #include "downloader.h" |
19 #include "listupdatedialog.h" | 23 #include "listupdatedialog.h" |
20 | 24 |
130 verifyAvailableData(); | 134 verifyAvailableData(); |
131 | 135 |
132 QDateTime listInstalledLastMod = mSettings.value("List/installedDate").toDateTime(); | 136 QDateTime listInstalledLastMod = mSettings.value("List/installedDate").toDateTime(); |
133 QDateTime swInstalledLastMod = mSettings.value("Software/installedDate").toDateTime(); | 137 QDateTime swInstalledLastMod = mSettings.value("Software/installedDate").toDateTime(); |
134 | 138 |
135 Downloader* downloader = new Downloader(this, QString::fromLatin1("https://files.kolab.org"), | 139 Downloader* downloader = new Downloader(this, |
136 QByteArray(), swInstalledLastMod, listInstalledLastMod); | 140 QString::fromLatin1(SERVER_URL), |
141 QByteArray(), | |
142 QDateTime::currentDateTime(), | |
143 // swInstalledLastMod, | |
144 listInstalledLastMod, | |
145 QString::fromLatin1(SW_RESOURCE), | |
146 QString::fromLatin1(LIST_RESOURCE)); | |
137 | 147 |
138 connect(downloader, SIGNAL(newListAvailable(const QString&, const QDateTime&)), | 148 connect(downloader, SIGNAL(newListAvailable(const QString&, const QDateTime&)), |
139 this, SLOT(handleNewList(const QString&, const QDateTime&))); | 149 this, SLOT(handleNewList(const QString&, const QDateTime&))); |
140 connect(downloader, SIGNAL(newSoftwareAvailable(const QString&, const QDateTime&)), | 150 connect(downloader, SIGNAL(newSoftwareAvailable(const QString&, const QDateTime&)), |
141 this, SLOT(handleNewSW(const QString&, const QDateTime&))); | 151 this, SLOT(handleNewSW(const QString&, const QDateTime&))); |