2016-05-12 20:51:25 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QFile>
|
|
|
|
#include <QtNetwork/QtNetwork>
|
|
|
|
#include <minecraft/auth/AuthSession.h>
|
|
|
|
#include "tasks/Task.h"
|
|
|
|
|
2021-11-23 00:25:24 +00:00
|
|
|
typedef shared_qobject_ptr<class SkinDelete> SkinDeletePtr;
|
2016-05-12 20:51:25 +00:00
|
|
|
|
2021-07-25 17:11:59 +00:00
|
|
|
class SkinDelete : public Task
|
2016-05-12 20:51:25 +00:00
|
|
|
{
|
2018-07-15 12:51:05 +00:00
|
|
|
Q_OBJECT
|
2016-05-12 20:51:25 +00:00
|
|
|
public:
|
2021-02-11 01:22:43 +00:00
|
|
|
SkinDelete(QObject *parent, AuthSessionPtr session);
|
|
|
|
virtual ~SkinDelete() = default;
|
2016-05-12 20:51:25 +00:00
|
|
|
|
|
|
|
private:
|
2018-07-15 12:51:05 +00:00
|
|
|
AuthSessionPtr m_session;
|
2021-11-23 00:25:24 +00:00
|
|
|
shared_qobject_ptr<QNetworkReply> m_reply;
|
2021-02-11 01:22:43 +00:00
|
|
|
|
2016-05-12 20:51:25 +00:00
|
|
|
protected:
|
2018-07-15 12:51:05 +00:00
|
|
|
virtual void executeTask();
|
2016-05-12 20:51:25 +00:00
|
|
|
|
|
|
|
public slots:
|
2018-07-15 12:51:05 +00:00
|
|
|
void downloadError(QNetworkReply::NetworkError);
|
|
|
|
void downloadFinished();
|
2016-05-12 20:51:25 +00:00
|
|
|
};
|
2021-02-11 01:22:43 +00:00
|
|
|
|