aboutsummaryrefslogtreecommitdiff
path: root/lib/user.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-02 18:24:09 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-07-04 21:34:54 +0900
commitc9ace4f4037577846085fa6805a2918c5a2e745b (patch)
treee2714a724bd5c2ad7b0976ce2d48e5d192d20d8a /lib/user.h
parentb52f3998a454a18ad46d1f276052965b96cd2ca9 (diff)
downloadlibquotient-c9ace4f4037577846085fa6805a2918c5a2e745b.tar.gz
libquotient-c9ace4f4037577846085fa6805a2918c5a2e745b.zip
Support ignoring users
Closes #215.
Diffstat (limited to 'lib/user.h')
-rw-r--r--lib/user.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/user.h b/lib/user.h
index 1cf72155..2eb7f78a 100644
--- a/lib/user.h
+++ b/lib/user.h
@@ -43,6 +43,8 @@ namespace QMatrixClient
User(QString userId, Connection* connection);
~User() override;
+ Connection* connection() const;
+
/** Get unique stable user id
* User id is generated by the server and is not changed ever.
*/
@@ -119,6 +121,10 @@ namespace QMatrixClient
* Connection::directChatAvailable()
*/
void requestDirectChat();
+ /** Add the user to the ignore list */
+ void ignore();
+ /** Remove the user from the ignore list */
+ void unmarkIgnore();
signals:
void nameAboutToChange(QString newName, QString oldName,