view ui/downloader.cpp @ 11:7e2f14c7aba2

Split up downloader component and further implement it
author Andre Heinecke <aheinecke@intevation.de>
date Fri, 14 Feb 2014 11:20:15 +0000
parents fe39d93f1261
children 9121eea6d93f
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)
{
    QFile certResource(":certificates/https");
    certResource.open(QFile::ReadOnly);
    Downloader (parent, url, certResource.readAll());
}

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

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