aboutsummaryrefslogtreecommitdiff
path: root/connection.h
diff options
context:
space:
mode:
Diffstat (limited to 'connection.h')
-rw-r--r--connection.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/connection.h b/connection.h
index 1ce3e0de..55b688a2 100644
--- a/connection.h
+++ b/connection.h
@@ -34,6 +34,7 @@ namespace QMatrixClient
class RoomMessagesJob;
class PostReceiptJob;
class MediaThumbnailJob;
+ class JoinRoomJob;
class Connection: public QObject {
Q_OBJECT
@@ -53,9 +54,11 @@ namespace QMatrixClient
Q_INVOKABLE virtual void logout();
Q_INVOKABLE virtual void sync(int timeout=-1);
+ /** @deprecated Use callApi<PostMessageJob>() or Room::postMessage() instead */
Q_INVOKABLE virtual void postMessage( Room* room, QString type, QString message );
+ /** @deprecated Use callApi<PostReceiptJob>() or Room::postReceipt() instead */
Q_INVOKABLE virtual PostReceiptJob* postReceipt( Room* room, Event* event );
- Q_INVOKABLE virtual void joinRoom( QString roomAlias );
+ Q_INVOKABLE virtual JoinRoomJob* joinRoom( QString roomAlias );
Q_INVOKABLE virtual void leaveRoom( Room* room );
Q_INVOKABLE virtual RoomMessagesJob* getMessages( Room* room, QString from );
virtual MediaThumbnailJob* getThumbnail( QUrl url, QSize requestedSize );