2016-05-13 02:21:25 +05:30
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QFile>
|
|
|
|
#include <QtNetwork/QtNetwork>
|
|
|
|
#include "tasks/Task.h"
|
|
|
|
|
2021-11-23 05:55:24 +05:30
|
|
|
typedef shared_qobject_ptr<class SkinDelete> SkinDeletePtr;
|
2016-05-13 02:21:25 +05:30
|
|
|
|
2021-07-25 22:41:59 +05:30
|
|
|
class SkinDelete : public Task
|
2016-05-13 02:21:25 +05:30
|
|
|
{
|
2018-07-15 18:21:05 +05:30
|
|
|
Q_OBJECT
|
2016-05-13 02:21:25 +05:30
|
|
|
public:
|
2021-12-04 05:48:05 +05:30
|
|
|
SkinDelete(QObject *parent, QString token);
|
2021-02-11 06:52:43 +05:30
|
|
|
virtual ~SkinDelete() = default;
|
2016-05-13 02:21:25 +05:30
|
|
|
|
|
|
|
private:
|
2021-12-04 05:48:05 +05:30
|
|
|
QString m_token;
|
2021-11-23 05:55:24 +05:30
|
|
|
shared_qobject_ptr<QNetworkReply> m_reply;
|
2021-02-11 06:52:43 +05:30
|
|
|
|
2016-05-13 02:21:25 +05:30
|
|
|
protected:
|
2018-07-15 18:21:05 +05:30
|
|
|
virtual void executeTask();
|
2016-05-13 02:21:25 +05:30
|
|
|
|
|
|
|
public slots:
|
2018-07-15 18:21:05 +05:30
|
|
|
void downloadError(QNetworkReply::NetworkError);
|
|
|
|
void downloadFinished();
|
2016-05-13 02:21:25 +05:30
|
|
|
};
|