aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs/mediathumbnailjob.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jobs/mediathumbnailjob.h')
-rw-r--r--lib/jobs/mediathumbnailjob.h29
1 files changed, 14 insertions, 15 deletions
diff --git a/lib/jobs/mediathumbnailjob.h b/lib/jobs/mediathumbnailjob.h
index 7963796e..1dcf8ccb 100644
--- a/lib/jobs/mediathumbnailjob.h
+++ b/lib/jobs/mediathumbnailjob.h
@@ -13,7 +13,7 @@
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#pragma once
@@ -22,26 +22,25 @@
#include <QtGui/QPixmap>
-namespace QMatrixClient
-{
- class MediaThumbnailJob: public GetContentThumbnailJob
+namespace QMatrixClient {
+ class MediaThumbnailJob : public GetContentThumbnailJob
{
public:
- using GetContentThumbnailJob::makeRequestUrl;
- static QUrl makeRequestUrl(QUrl baseUrl,
- const QUrl& mxcUri, QSize requestedSize);
+ using GetContentThumbnailJob::makeRequestUrl;
+ static QUrl makeRequestUrl(QUrl baseUrl, const QUrl& mxcUri,
+ QSize requestedSize);
- MediaThumbnailJob(const QString& serverName, const QString& mediaId,
- QSize requestedSize);
- MediaThumbnailJob(const QUrl& mxcUri, QSize requestedSize);
+ MediaThumbnailJob(const QString& serverName, const QString& mediaId,
+ QSize requestedSize);
+ MediaThumbnailJob(const QUrl& mxcUri, QSize requestedSize);
- QImage thumbnail() const;
- QImage scaledThumbnail(QSize toSize) const;
+ QImage thumbnail() const;
+ QImage scaledThumbnail(QSize toSize) const;
protected:
- Status parseReply(QNetworkReply* reply) override;
+ Status parseReply(QNetworkReply* reply) override;
private:
- QImage _thumbnail;
+ QImage _thumbnail;
};
-} // namespace QMatrixClient
+} // namespace QMatrixClient