diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-04-26 06:43:32 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-26 06:43:32 +0900 |
commit | 52a81dfa8a5415be369d819837f445479b833cde (patch) | |
tree | 001c50bb9e6a696fc7f10d0b65db40c587cd2941 /lib/connection.h | |
parent | 1103c1fa00d99c4e090f76fd07a384032f79f0c1 (diff) | |
parent | 05c9984fd1d369397fbf3c9cad67413906e817cc (diff) | |
download | libquotient-52a81dfa8a5415be369d819837f445479b833cde.tar.gz libquotient-52a81dfa8a5415be369d819837f445479b833cde.zip |
Merge pull request #319 from QMatrixClient/user-ignored-qml
Make ignore-user related method Q_INVOKABLE.
Diffstat (limited to 'lib/connection.h')
-rw-r--r-- | lib/connection.h | 8 |
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; |