diff options
Diffstat (limited to 'connection.h')
-rw-r--r-- | connection.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/connection.h b/connection.h index dc056fd8..9f3d23f3 100644 --- a/connection.h +++ b/connection.h @@ -46,6 +46,7 @@ namespace QMatrixClient Q_INVOKABLE virtual void resolveServer( QString domain ); Q_INVOKABLE virtual void connectToServer( QString user, QString password ); + Q_INVOKABLE virtual void connectWithToken( QString userId, QString token ); Q_INVOKABLE virtual void reconnect(); Q_INVOKABLE virtual SyncJob* sync(int timeout=-1); Q_INVOKABLE virtual void postMessage( Room* room, QString type, QString message ); @@ -58,6 +59,8 @@ namespace QMatrixClient Q_INVOKABLE virtual User* user(QString userId); Q_INVOKABLE virtual User* user(); + Q_INVOKABLE virtual QString userId(); + Q_INVOKABLE virtual QString token(); signals: void connected(); |