aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-02-24 20:09:12 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-02-24 20:09:12 +0900
commitccb94f4fde97ed7f10b69c6739da3b090c80a3a1 (patch)
treecaa0cbdbc89e0083fcb15e4e70cf497a9f97fa08 /lib/connection.h
parent293b54791f171382f3ce1afb1e035165142ab120 (diff)
parent297216e95c0802248110403f1b8fdcd5eb02fae6 (diff)
downloadlibquotient-ccb94f4fde97ed7f10b69c6739da3b090c80a3a1.tar.gz
libquotient-ccb94f4fde97ed7f10b69c6739da3b090c80a3a1.zip
Merge branch 'kitsune-aliases-map'
Diffstat (limited to 'lib/connection.h')
-rw-r--r--lib/connection.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/lib/connection.h b/lib/connection.h
index 1a81c29e..b22d63da 100644
--- a/lib/connection.h
+++ b/lib/connection.h
@@ -231,8 +231,8 @@ namespace QMatrixClient
*/
void addToIgnoredUsers(const User* user);
- /** Remove the user from the ignore list
- * Similar to adding, the change signal is emitted synchronously.
+ /** Remove the user from the ignore list */
+ /** Similar to adding, the change signal is emitted synchronously.
*
* \sa ignoredUsersListChanged
*/
@@ -242,8 +242,18 @@ namespace QMatrixClient
QMap<QString, User*> users() const;
QUrl homeserver() const;
+ /** Find a room by its id and a mask of applicable states */
Q_INVOKABLE Room* room(const QString& roomId,
- JoinStates states = JoinState::Invite|JoinState::Join) const;
+ JoinStates states = JoinState::Invite|JoinState::Join) const;
+ /** Find a room by its alias and a mask of applicable states */
+ Q_INVOKABLE Room* roomByAlias(const QString& roomAlias,
+ JoinStates states = JoinState::Invite|JoinState::Join) const;
+ /** Update the internal map of room aliases to IDs */
+ /// This is used for internal bookkeeping of rooms. Do NOT use
+ /// it to try change aliases, use Room::setAliases instead
+ void updateRoomAliases(const QString& roomId,
+ const QStringList& previousRoomAliases,
+ const QStringList& roomAliases);
Q_INVOKABLE Room* invitation(const QString& roomId) const;
Q_INVOKABLE User* user(const QString& userId);
const User* user() const;