27 lines
509 B
C
Raw Normal View History

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