summaryrefslogtreecommitdiffstats
path: root/src/DownloadManager.h
diff options
context:
space:
mode:
authorJonathan Bauer2011-03-05 22:33:17 +0100
committerJonathan Bauer2011-03-05 22:33:17 +0100
commitab1846c64d417224a53e8dc4ef3c55f87a413cd6 (patch)
tree4ad604df991076b4e99c6d45aee5725a0d2707f4 /src/DownloadManager.h
parent-qws options not needed anymore (it is set in the constructor of QApplication.) (diff)
downloadfbgui-ab1846c64d417224a53e8dc4ef3c55f87a413cd6.tar.gz
fbgui-ab1846c64d417224a53e8dc4ef3c55f87a413cd6.tar.xz
fbgui-ab1846c64d417224a53e8dc4ef3c55f87a413cd6.zip
downloadFile now needs a QUrl&, simplifies things (startDownload slot in jso needs reworking, tempfix there but messy.)
Diffstat (limited to 'src/DownloadManager.h')
-rw-r--r--src/DownloadManager.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/DownloadManager.h b/src/DownloadManager.h
index 5007b27..9141330 100644
--- a/src/DownloadManager.h
+++ b/src/DownloadManager.h
@@ -10,20 +10,18 @@ class DownloadManager : public QObject
Q_OBJECT
public:
- DownloadManager(const QUrl& baseUrl);
+ DownloadManager();
~DownloadManager();
- void processDownloadRequest(QString& filename);
+ void processDownloadRequest(QUrl& url);
int downloaded;
private:
// Object required for downloading.
QNetworkAccessManager* qnam;
- QUrl baseUrl;
QQueue<QUrl> dlQ;
QNetworkRequest request;
QNetworkReply* currentDownload;
QFile outfile;
- QString filename;
// Download-in-progress flag.
bool dip;
@@ -33,7 +31,7 @@ signals:
void updateProgress(int i);
public slots:
- void downloadFile(QString name);
+ void downloadFile(QUrl& fileUrl);
private slots:
void startNextDownload();