aboutsummaryrefslogtreecommitdiff
path: root/room.h
diff options
context:
space:
mode:
Diffstat (limited to 'room.h')
-rw-r--r--room.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/room.h b/room.h
index 8b810ae4..e277a3f9 100644
--- a/room.h
+++ b/room.h
@@ -63,6 +63,7 @@ namespace QMatrixClient
class Room: public QObject
{
Q_OBJECT
+ Q_PROPERTY(const Connection* connection READ connection CONSTANT)
Q_PROPERTY(QString id READ id CONSTANT)
Q_PROPERTY(QString name READ name NOTIFY namesChanged)
Q_PROPERTY(QStringList aliases READ aliases NOTIFY namesChanged)
@@ -77,6 +78,7 @@ namespace QMatrixClient
Room(Connection* connection, QString id);
virtual ~Room();
+ Connection* connection() const;
QString id() const;
QString name() const;
QStringList aliases() const;
@@ -173,7 +175,6 @@ namespace QMatrixClient
void unreadMessagesChanged(Room* room);
protected:
- Connection* connection() const;
virtual void doAddNewMessageEvents(const Events& events);
virtual void doAddHistoricalMessageEvents(const Events& events);
virtual void processStateEvents(const Events& events);