mirror of
https://github.com/MultiMC/MultiMC5.git
synced 2024-11-20 08:10:11 +00:00
32 lines
642 B
C++
32 lines
642 B
C++
#pragma once
|
|
#include "net/NetAction.h"
|
|
#include "Screenshot.h"
|
|
|
|
typedef std::shared_ptr<class ImgurUpload> ImgurUploadPtr;
|
|
class ImgurUpload : public NetAction
|
|
{
|
|
public:
|
|
explicit ImgurUpload(ScreenshotPtr shot);
|
|
static ImgurUploadPtr make(ScreenshotPtr shot)
|
|
{
|
|
return ImgurUploadPtr(new ImgurUpload(shot));
|
|
}
|
|
|
|
protected
|
|
slots:
|
|
virtual void downloadProgress(qint64 bytesReceived, qint64 bytesTotal);
|
|
virtual void downloadError(QNetworkReply::NetworkError error);
|
|
virtual void downloadFinished();
|
|
virtual void downloadReadyRead()
|
|
{
|
|
}
|
|
|
|
public
|
|
slots:
|
|
virtual void start();
|
|
|
|
private:
|
|
ScreenshotPtr m_shot;
|
|
bool finished = true;
|
|
};
|