aboutsummaryrefslogtreecommitdiff
path: root/connection.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2016-10-14 10:06:44 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2016-10-14 10:06:44 +0900
commit24deeda0fe95fd352b823b48a3bc2e660f6a261d (patch)
tree712be9dc1f146105c5569dfac65367381f260793 /connection.h
parent45f38a1d6687d1ceaca87a6d6d94ac2515debb02 (diff)
downloadlibquotient-24deeda0fe95fd352b823b48a3bc2e660f6a261d.tar.gz
libquotient-24deeda0fe95fd352b823b48a3bc2e660f6a261d.zip
MediaThumbnailJob: Use QSize instead of two separate int's for size
Connection::getThumbnail() is now overloaded to provide compatibility with the previous interface.
Diffstat (limited to 'connection.h')
-rw-r--r--connection.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/connection.h b/connection.h
index fed0b1c4..c5dad246 100644
--- a/connection.h
+++ b/connection.h
@@ -58,7 +58,8 @@ namespace QMatrixClient
Q_INVOKABLE virtual void joinRoom( QString roomAlias );
Q_INVOKABLE virtual void leaveRoom( Room* room );
Q_INVOKABLE virtual RoomMessagesJob* getMessages( Room* room, QString from );
- virtual MediaThumbnailJob* getThumbnail( QUrl url, int requestedWidth, int requestedHeight );
+ virtual MediaThumbnailJob* getThumbnail( QUrl url, QSize requestedSize );
+ MediaThumbnailJob* getThumbnail( QUrl url, int requestedWidth, int requestedHeight );
Q_INVOKABLE QUrl homeserver() const;
Q_INVOKABLE User* user(QString userId);