From 05c9984fd1d369397fbf3c9cad67413906e817cc Mon Sep 17 00:00:00 2001 From: Black Hat Date: Wed, 24 Apr 2019 21:18:24 +0800 Subject: Make ignore-user related method Q_INVOKABLE. --- lib/connection.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/connection.h') 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 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 users() const; -- cgit v1.2.3