summaryrefslogtreecommitdiffstats
path: root/api/logic/modplatform/ftb/FtbPackFetchTask.h
diff options
context:
space:
mode:
authorJanrupf <werbung.janrupf@t-online.de>2018-04-01 20:24:28 +0200
committerJanrupf <werbung.janrupf@t-online.de>2018-04-02 23:02:33 +0200
commitbbd523acb8bf846d27a7859d1d79f28ea92de245 (patch)
treeb8cb693f9558b99e27f730840ca1764da08495d2 /api/logic/modplatform/ftb/FtbPackFetchTask.h
parent67d2f283da3bf9538e6a31de3759cd959010b36c (diff)
downloadMultiMC-bbd523acb8bf846d27a7859d1d79f28ea92de245.tar
MultiMC-bbd523acb8bf846d27a7859d1d79f28ea92de245.tar.gz
MultiMC-bbd523acb8bf846d27a7859d1d79f28ea92de245.tar.lz
MultiMC-bbd523acb8bf846d27a7859d1d79f28ea92de245.tar.xz
MultiMC-bbd523acb8bf846d27a7859d1d79f28ea92de245.zip
NOISSUE Added FTB Pack logos to chooser and fixed some missing includes
Diffstat (limited to 'api/logic/modplatform/ftb/FtbPackFetchTask.h')
-rw-r--r--api/logic/modplatform/ftb/FtbPackFetchTask.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/api/logic/modplatform/ftb/FtbPackFetchTask.h b/api/logic/modplatform/ftb/FtbPackFetchTask.h
index a2e4b5ab..b5635b12 100644
--- a/api/logic/modplatform/ftb/FtbPackFetchTask.h
+++ b/api/logic/modplatform/ftb/FtbPackFetchTask.h
@@ -18,16 +18,20 @@ public:
private:
NetJobPtr jobPtr;
- Net::Download::Ptr downloadPtr;
- QByteArray modpacksXmlFileData;
+ QByteArray publicModpacksXmlFileData;
+ QByteArray thirdPartyModpacksXmlFileData;
+
+ bool parseAndAddPacks(QByteArray &data, FtbPackType packType, FtbModpackList &list);
+ FtbModpackList publicPacks;
+ FtbModpackList thirdPartyPacks;
protected slots:
void fileDownloadFinished();
void fileDownloadFailed(QString reason);
signals:
- void finished(FtbModpackList list);
+ void finished(FtbModpackList publicPacks, FtbModpackList thirdPartyPacks);
void failed(QString reason);
};