From b6d455a02bd338e9dc0faa09d4d8177ecd8d569a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sun, 10 Apr 2016 15:53:05 +0200 Subject: NOISSUE reorganize and document libraries --- api/logic/screenshots/ImgurAlbumCreation.h | 44 ++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 api/logic/screenshots/ImgurAlbumCreation.h (limited to 'api/logic/screenshots/ImgurAlbumCreation.h') diff --git a/api/logic/screenshots/ImgurAlbumCreation.h b/api/logic/screenshots/ImgurAlbumCreation.h new file mode 100644 index 00000000..469174e4 --- /dev/null +++ b/api/logic/screenshots/ImgurAlbumCreation.h @@ -0,0 +1,44 @@ +#pragma once +#include "net/NetAction.h" +#include "Screenshot.h" + +#include "multimc_logic_export.h" + +typedef std::shared_ptr ImgurAlbumCreationPtr; +class MULTIMC_LOGIC_EXPORT ImgurAlbumCreation : public NetAction +{ +public: + explicit ImgurAlbumCreation(QList screenshots); + static ImgurAlbumCreationPtr make(QList screenshots) + { + return ImgurAlbumCreationPtr(new ImgurAlbumCreation(screenshots)); + } + + QString deleteHash() const + { + return m_deleteHash; + } + QString id() const + { + return m_id; + } + +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: + QList m_screenshots; + + QString m_deleteHash; + QString m_id; +}; -- cgit v1.2.3