diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-11-26 10:15:12 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-11-26 10:15:12 +0900 |
commit | ab3680f61222a1e915cf6fc4e14f6892c9c99341 (patch) | |
tree | 9d706989cb9b8eff0f7743d075b8fb07874f4bcb | |
parent | ad12695aceabc7db7cbdfdd760175c65f4f3d0d1 (diff) | |
download | libquotient-ab3680f61222a1e915cf6fc4e14f6892c9c99341.tar.gz libquotient-ab3680f61222a1e915cf6fc4e14f6892c9c99341.zip |
Deprecated resolved(); grouped signals from the same operations
-rw-r--r-- | connection.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/connection.h b/connection.h index cd74b512..999dcd71 100644 --- a/connection.h +++ b/connection.h @@ -196,13 +196,29 @@ namespace QMatrixClient virtual RoomMessagesJob* getMessages(Room* room, const QString& from) const; signals: + /** + * @deprecated + * This was a signal resulting from a successful resolveServer(). + * Since Connection now provides setHomeserver(), the HS URL + * may change even without resolveServer() invocation. Use + * homeserverChanged() instead of resolved(). You can also use + * connectToServer and connectWithToken without the HS URL set in + * advance (i.e. without calling resolveServer), as they now trigger + * server name resolution from MXID if the server URL is not valid. + */ void resolved(); + void resolveError(QString error); + void homeserverChanged(QUrl baseUrl); + void connected(); void reconnected(); //< Unused; use connected() instead void loggedOut(); + void loginError(QString error); + void networkError(size_t nextAttempt, int inMilliseconds); void syncDone(); + void syncError(QString error); /** * \group Signals emitted on room transitions @@ -262,12 +278,6 @@ namespace QMatrixClient /** The room object is about to be deleted */ void aboutToDeleteRoom(Room* room); - void loginError(QString error); - void networkError(size_t nextAttempt, int inMilliseconds); - void resolveError(QString error); - void syncError(QString error); - //void jobError(BaseJob* job); - void cacheStateChanged(); protected: |