diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2015-10-15 23:18:22 +0300 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2015-10-15 23:18:22 +0300 |
commit | 4441053b1c246b37f67229daf28c8b47041b7bd7 (patch) | |
tree | e818983ac012dbcdb2319f4cbab9789dcb974f6b /src/gui/thumbnailjob.h | |
parent | a34b663828fd1697664eeefde8831e526ba63f7e (diff) |
Thumbnailjob fixes
* Comments
* Use the path of the abstractnetworkjob
Diffstat (limited to 'src/gui/thumbnailjob.h')
-rw-r--r-- | src/gui/thumbnailjob.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/src/gui/thumbnailjob.h b/src/gui/thumbnailjob.h index 7c58f2492..271116406 100644 --- a/src/gui/thumbnailjob.h +++ b/src/gui/thumbnailjob.h @@ -19,6 +19,13 @@ namespace OCC { +/** + * @brief Job to fetch a thumbnail for a file + * @ingroup gui + * + * Job that allows fetching a preview (of 150x150 for now) of a given file. + * Once the job finished the jobFinished signal will be emitted. + */ class ThumbnailJob : public AbstractNetworkJob { Q_OBJECT public: @@ -26,11 +33,17 @@ public: public slots: void start() Q_DECL_OVERRIDE; signals: + /** + * @param statusCode the HTTP status code + * @param reply the content of the reply + * + * Signal that the job is done. If the statusCode is 200 (success) reply + * will contain the image data in PNG. If the status code is different the content + * of reply is undefined. + */ void jobFinished(int statusCode, QByteArray reply); private slots: virtual bool finished() Q_DECL_OVERRIDE; -private: - QUrl _url; }; } |