diff options
Diffstat (limited to 'logic/screenshots/ImgurUpload.h')
-rw-r--r-- | logic/screenshots/ImgurUpload.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/logic/screenshots/ImgurUpload.h b/logic/screenshots/ImgurUpload.h new file mode 100644 index 00000000..1111a8d0 --- /dev/null +++ b/logic/screenshots/ImgurUpload.h @@ -0,0 +1,30 @@ +#pragma once +#include "logic/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; +}; |