comparison ui/downloader.cpp @ 12:9121eea6d93f

Fix constructor usage. Too much Java.
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 14 Feb 2014 11:30:55 +0000
parents 7e2f14c7aba2
children 95e1b6edf2fc
comparison
equal deleted inserted replaced
11:7e2f14c7aba2 12:9121eea6d93f
8 #endif 8 #endif
9 9
10 #include <QFile> 10 #include <QFile>
11 #include <QDebug> 11 #include <QDebug>
12 12
13 Downloader::Downloader(QObject* parent, const QString& url) 13 Downloader::Downloader(QObject* parent, const QString& url):
14 QThread(parent),
15 mUrl(url)
14 { 16 {
15 QFile certResource(":certificates/https"); 17 QFile certResource(":certificates/https");
16 certResource.open(QFile::ReadOnly); 18 certResource.open(QFile::ReadOnly);
17 Downloader (parent, url, certResource.readAll()); 19 mCert = certResource.readAll();
20 certResource.close();
18 } 21 }
19 22
20 Downloader::Downloader(QObject* parent, const QString& url, 23 Downloader::Downloader(QObject* parent, const QString& url,
21 const QByteArray& certificate) : 24 const QByteArray& certificate):
25 QThread(parent),
22 mUrl(url), 26 mUrl(url),
23 mCert(certificate), 27 mCert(certificate)
24 QThread(parent)
25 { 28 {
29
26 } 30 }
27 31

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