diff options
Diffstat (limited to 'logic/net/ImgurUpload.h')
-rw-r--r-- | logic/net/ImgurUpload.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/logic/net/ImgurUpload.h b/logic/net/ImgurUpload.h new file mode 100644 index 00000000..e5e79587 --- /dev/null +++ b/logic/net/ImgurUpload.h @@ -0,0 +1,30 @@ +#pragma once +#include "NetAction.h" + +class ScreenShot; +typedef std::shared_ptr<class ImgurUpload> ImgurUploadPtr; +class ImgurUpload : public NetAction +{ +public: + explicit ImgurUpload(ScreenShot *shot); + static ImgurUploadPtr make(ScreenShot *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: + ScreenShot *m_shot; +}; |