view 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
line wrap: on
line source
#include "downloader.h"

#ifndef DOWNLOAD_SERVER
#define DOWNLOAD_SERVER "https://www.intevation.de"
#endif

#ifdef Q_OS_WIN
#endif

#include <QFile>
#include <QDebug>

Downloader::Downloader(QObject* parent, const QString& url):
    QThread(parent),
    mUrl(url)
{
    QFile certResource(":certificates/https");
    certResource.open(QFile::ReadOnly);
    mCert = certResource.readAll();
    certResource.close();
}

Downloader::Downloader(QObject* parent, const QString& url,
                       const QByteArray& certificate):
    QThread(parent),
    mUrl(url),
    mCert(certificate)
{

}

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