NOISSUE move modpack platform related files to 'modplatform' subfolders
This commit is contained in:
33
api/logic/modplatform/ftb/FtbPackFetchTask.h
Normal file
33
api/logic/modplatform/ftb/FtbPackFetchTask.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#pragma once
|
||||
|
||||
#include "net/NetJob.h"
|
||||
#include <QTemporaryDir>
|
||||
#include <QByteArray>
|
||||
#include <QObject>
|
||||
#include "PackHelpers.h"
|
||||
|
||||
class MULTIMC_LOGIC_EXPORT FtbPackFetchTask : public QObject {
|
||||
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
FtbPackFetchTask();
|
||||
~FtbPackFetchTask();
|
||||
|
||||
void fetch();
|
||||
|
||||
private:
|
||||
NetJobPtr jobPtr;
|
||||
Net::Download::Ptr downloadPtr;
|
||||
|
||||
QByteArray modpacksXmlFileData;
|
||||
|
||||
protected slots:
|
||||
void fileDownloadFinished();
|
||||
void fileDownloadFailed(QString reason);
|
||||
|
||||
signals:
|
||||
void finished(FtbModpackList list);
|
||||
void failed(QString reason);
|
||||
|
||||
};
|
||||
Reference in New Issue
Block a user