diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-08-04 04:19:10 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-08-04 04:19:10 +0200 |
commit | 0adf1828b047699b9d15e2abf08a1ae0b89da73b (patch) | |
tree | b29fd7a91a33a1706367560288d67fb12329fd4c /backend/OneSixAssets.h | |
parent | 4f73091bb5bdbdb91329b9a4ef647fc8286d423c (diff) | |
download | MultiMC-0adf1828b047699b9d15e2abf08a1ae0b89da73b.tar MultiMC-0adf1828b047699b9d15e2abf08a1ae0b89da73b.tar.gz MultiMC-0adf1828b047699b9d15e2abf08a1ae0b89da73b.tar.lz MultiMC-0adf1828b047699b9d15e2abf08a1ae0b89da73b.tar.xz MultiMC-0adf1828b047699b9d15e2abf08a1ae0b89da73b.zip |
Download assets for 1.6 on application start (background task).
Diffstat (limited to 'backend/OneSixAssets.h')
-rw-r--r-- | backend/OneSixAssets.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/backend/OneSixAssets.h b/backend/OneSixAssets.h index caf67c93..233f925a 100644 --- a/backend/OneSixAssets.h +++ b/backend/OneSixAssets.h @@ -1,6 +1,5 @@ #pragma once -#include <QObject> -#include <QSharedPointer> +#include "dlqueue.h" class Private; @@ -15,7 +14,10 @@ public slots: void fetchFinished(); void fetchStarted(); public: - explicit OneSixAssets ( QObject* parent = 0 ); void start(); - QSharedPointer<Private> d; +private: + QSharedPointer<QNetworkAccessManager> net_manager {new QNetworkAccessManager()}; + JobListQueue dl; + JobListPtr index_job; + JobListPtr files_job; }; |