PrismLauncher/launcher/minecraft/services/SkinDelete.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
573 B
C
Raw Normal View History

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