- Moved from libcommoncpp2 to libcurl for downloads from urls

- Added SOCKS5 proxy support in downloads from urls, RSS
This commit is contained in:
Christophe Dumez
2007-11-23 23:00:38 +00:00
parent 04b683c38c
commit 33305cca9f
8 changed files with 159 additions and 118 deletions

View File

@@ -29,29 +29,18 @@
#include <QMutexLocker>
#include <QWaitCondition>
#include <QStringList>
namespace ost {
class URLStream;
}
typedef struct {
QString IP;
int port;
QString username;
QString password;
} tmp_proxy;
#include <curl/curl.h>
class subDownloadThread : public QThread {
Q_OBJECT
private:
QString url;
ost::URLStream *url_stream;
bool abort;
public:
subDownloadThread(QObject *parent, QString url);
~subDownloadThread();
QString errorCodeToString(int status);
QString errorCodeToString(CURLcode status);
signals:
// For subthreads
@@ -90,7 +79,6 @@ class downloadThread : public QThread {
protected slots:
void propagateDownloadedFile(subDownloadThread* st, QString url, QString path);
void propagateDownloadFailure(subDownloadThread* st, QString url, QString reason);
};