aboutsummaryrefslogtreecommitdiff
path: root/connection.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-30 15:35:06 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-01-30 16:07:54 +0900
commit038471e340c51f36f612fbb19d8a2b60a9923973 (patch)
tree64fd4526106f80b6a0091f6c5ad10127e73aec30 /connection.h
parentfcb0342410beaacc84c59813a1a7b6195c6abf7f (diff)
downloadlibquotient-038471e340c51f36f612fbb19d8a2b60a9923973.tar.gz
libquotient-038471e340c51f36f612fbb19d8a2b60a9923973.zip
Connection: expose the list of users; use an ordered map
It's still an open question whether it's better to store a separate sorted index of users, next to an unsorted one; but a sorted list of users is of much more use in GUI than an unsorted one.
Diffstat (limited to 'connection.h')
-rw-r--r--connection.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/connection.h b/connection.h
index 792ed126..2f7c38b3 100644
--- a/connection.h
+++ b/connection.h
@@ -71,6 +71,7 @@ namespace QMatrixClient
virtual ~Connection();
QHash<QPair<QString, bool>, Room*> roomMap() const;
+ QMap<QString, User*> users() const;
/** Sends /forget to the server and also deletes room locally.
* This method is in Connection, not in Room, since it's a