diff ui/mainwindow.cpp @ 45:c6125d73faf4

Move SSLConnection into it's own class
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 14 Mar 2014 16:40:53 +0000
parents 37fc66967517
children f22a99f7cb69
line wrap: on
line diff
--- a/ui/mainwindow.cpp	Fri Mar 14 16:06:40 2014 +0000
+++ b/ui/mainwindow.cpp	Fri Mar 14 16:40:53 2014 +0000
@@ -20,7 +20,7 @@
 MainWindow::MainWindow() {
     createActions();
     createTrayIcon();
-    qRegisterMetaType<Downloader::ErrorCode>("Downloader::ErrorCode");
+    qRegisterMetaType<SSLConnection::ErrorCode>("SSLConnection::ErrorCode");
 
     connect(mTrayIcon, SIGNAL(activated(QSystemTrayIcon::ActivationReason)),
             this, SLOT(iconActivated(QSystemTrayIcon::ActivationReason)));
@@ -132,13 +132,13 @@
     connect(downloader, SIGNAL(newSoftwareAvailable(const QString&, const QDateTime&)),
             this, SLOT(handleNewSW(const QString&, const QDateTime&)));
     connect(downloader, SIGNAL(finished()), downloader, SLOT(deleteLater()));
-    connect(downloader, SIGNAL(error(const QString &, Downloader::ErrorCode)),
-            this, SLOT(downloaderError(const QString &, Downloader::ErrorCode)));
+    connect(downloader, SIGNAL(error(const QString &, SSLConnection::ErrorCode)),
+            this, SLOT(downloaderError(const QString &, SSLConnection::ErrorCode)));
     downloader->start();
 }
 
 
-void MainWindow::downloaderError(const QString &message, Downloader::ErrorCode error)
+void MainWindow::downloaderError(const QString &message, SSLConnection::ErrorCode error)
 {
     mCurMessage = message;
     showMessage();

http://wald.intevation.org/projects/trustbridge/