diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-05-09 14:15:29 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-05-09 14:15:29 +0900 |
commit | cff6aaafeee5c5f7d337c6001694bda119d3cba9 (patch) | |
tree | 6aee024031d7975e595d8ef1a19c8ce0eff802f3 | |
parent | b903a3776aabb44863a9a9a4d83c6ee4e033cd5d (diff) | |
download | libquotient-cff6aaafeee5c5f7d337c6001694bda119d3cba9.tar.gz libquotient-cff6aaafeee5c5f7d337c6001694bda119d3cba9.zip |
Returned Connection::disconnectFromServer() for back-compatibility
-rw-r--r-- | connection.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/connection.h b/connection.h index 7ca1ccd6..08184d0d 100644 --- a/connection.h +++ b/connection.h @@ -51,6 +51,8 @@ namespace QMatrixClient Q_INVOKABLE virtual void connectWithToken(const QString& userId, const QString& token); Q_INVOKABLE virtual void reconnect(); + /** @deprecated Use stopSync() instead */ + Q_INVOKABLE virtual void disconnectFromServer() { stopSync(); } Q_INVOKABLE virtual void logout(); Q_INVOKABLE void sync(int timeout = -1); |