diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-26 11:45:46 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-26 11:45:46 +0900 |
commit | e9cdf6c887b80210dcb6d754c1db82d3fad2ec06 (patch) | |
tree | 775862ad49bb76d0db51c8093f8a7f983809feeb /connection.h | |
parent | e7e9330d665c1d8d2391707d27019a7f454cbcdf (diff) | |
download | libquotient-e9cdf6c887b80210dcb6d754c1db82d3fad2ec06.tar.gz libquotient-e9cdf6c887b80210dcb6d754c1db82d3fad2ec06.zip |
Connection::room() and Connection::invitation()
Diffstat (limited to 'connection.h')
-rw-r--r-- | connection.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/connection.h b/connection.h index e046d4a0..4497e200 100644 --- a/connection.h +++ b/connection.h @@ -107,6 +107,9 @@ namespace QMatrixClient // FIXME: Convert Q_INVOKABLEs to Q_PROPERTIES // (breaks back-compatibility) QUrl homeserver() const; + Q_INVOKABLE Room* room(const QString& roomId, + JoinStates states = JoinState::Invite|JoinState::Join) const; + Q_INVOKABLE Room* invitation(const QString& roomId) const; Q_INVOKABLE User* user(const QString& userId); const User* user() const; User* user(); |