aboutsummaryrefslogtreecommitdiff
path: root/connection.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-03-26 11:45:46 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-03-26 11:45:46 +0900
commite9cdf6c887b80210dcb6d754c1db82d3fad2ec06 (patch)
tree775862ad49bb76d0db51c8093f8a7f983809feeb /connection.h
parente7e9330d665c1d8d2391707d27019a7f454cbcdf (diff)
downloadlibquotient-e9cdf6c887b80210dcb6d754c1db82d3fad2ec06.tar.gz
libquotient-e9cdf6c887b80210dcb6d754c1db82d3fad2ec06.zip
Connection::room() and Connection::invitation()
Diffstat (limited to 'connection.h')
-rw-r--r--connection.h3
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();