aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-02-01 07:30:09 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-02-22 10:55:33 +0900
commit297216e95c0802248110403f1b8fdcd5eb02fae6 (patch)
tree9d2014a6c41a31294647e9204a32825721a594d1 /lib/connection.h
parent02872ea0cf6dccabb55b38a33fc5ad67f183254b (diff)
downloadlibquotient-297216e95c0802248110403f1b8fdcd5eb02fae6.tar.gz
libquotient-297216e95c0802248110403f1b8fdcd5eb02fae6.zip
Room::setAliases, Connection: roomByAlias, updateRoomAliases
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 1faee255..49039ffe 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;