aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.h
diff options
context:
space:
mode:
authorBlack Hat <bhat@encom.eu.org>2019-04-24 21:18:24 +0800
committerBlack Hat <bhat@encom.eu.org>2019-04-24 21:18:24 +0800
commit05c9984fd1d369397fbf3c9cad67413906e817cc (patch)
tree001c50bb9e6a696fc7f10d0b65db40c587cd2941 /lib/connection.h
parent1103c1fa00d99c4e090f76fd07a384032f79f0c1 (diff)
downloadlibquotient-05c9984fd1d369397fbf3c9cad67413906e817cc.tar.gz
libquotient-05c9984fd1d369397fbf3c9cad67413906e817cc.zip
Make ignore-user related method Q_INVOKABLE.
Diffstat (limited to 'lib/connection.h')
-rw-r--r--lib/connection.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/connection.h b/lib/connection.h
index ea5be51a..42e678ff 100644
--- a/lib/connection.h
+++ b/lib/connection.h
@@ -219,10 +219,10 @@ namespace QMatrixClient
QList<User*> directChatUsers(const Room* room) const;
/** Check whether a particular user is in the ignore list */
- bool isIgnored(const User* user) const;
+ Q_INVOKABLE bool isIgnored(const User* user) const;
/** Get the whole list of ignored users */
- IgnoredUsersList ignoredUsers() const;
+ Q_INVOKABLE IgnoredUsersList ignoredUsers() const;
/** Add the user to the ignore list
* The change signal is emitted synchronously, without waiting
@@ -230,14 +230,14 @@ namespace QMatrixClient
*
* \sa ignoredUsersListChanged
*/
- void addToIgnoredUsers(const User* user);
+ Q_INVOKABLE void addToIgnoredUsers(const User* user);
/** Remove the user from the ignore list */
/** Similar to adding, the change signal is emitted synchronously.
*
* \sa ignoredUsersListChanged
*/
- void removeFromIgnoredUsers(const User* user);
+ Q_INVOKABLE void removeFromIgnoredUsers(const User* user);
/** Get the full list of users known to this account */
QMap<QString, User*> users() const;