Mercurial > trustbridge
diff ui/mainwindow.cpp @ 27:62cd56cea09b
Start on polarssl Downloader.
This breaks the windows build for now
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Wed, 12 Mar 2014 16:15:52 +0100 |
parents | 9af6198deb8e |
children | 37fc66967517 |
line wrap: on
line diff
--- a/ui/mainwindow.cpp Tue Mar 11 19:00:35 2014 +0100 +++ b/ui/mainwindow.cpp Wed Mar 12 16:15:52 2014 +0100 @@ -20,6 +20,7 @@ MainWindow::MainWindow() { createActions(); createTrayIcon(); + qRegisterMetaType<Downloader::ErrorCode>("Downloader::ErrorCode"); connect(mTrayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)), this, SLOT(iconActivated(QSystemTrayIcon::ActivationReason))); @@ -123,7 +124,7 @@ QDateTime listInstalledLastMod = mSettings.value("List/installedDate").toDateTime(); QDateTime swInstalledLastMod = mSettings.value("Software/installedDate").toDateTime(); - Downloader* downloader = new Downloader(this, QString::fromLatin1("www.files.kolab.org"), + Downloader* downloader = new Downloader(this, QString::fromLatin1("https://files.kolab.org"), QByteArray(), swInstalledLastMod, listInstalledLastMod); connect(downloader, SIGNAL(newListAvailable(const QString&, const QDateTime&)), @@ -139,8 +140,8 @@ void MainWindow::downloaderError(const QString &message, Downloader::ErrorCode error) { - // TODO decide what to show when and how. mCurMessage = message; + showMessage(); }