diff options
-rw-r--r-- | room.cpp | 4 | ||||
-rw-r--r-- | room.h | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -60,7 +60,7 @@ class Room::Private void updateDisplayname(); Connection* connection; - QList<Event*> messageEvents; + Timeline messageEvents; QString id; QStringList aliases; QString canonicalAlias; @@ -120,7 +120,7 @@ QString Room::id() const return d->id; } -QList< Event* > Room::messageEvents() const +Room::Timeline Room::messageEvents() const { return d->messageEvents; } @@ -37,11 +37,13 @@ namespace QMatrixClient { Q_OBJECT public: + using Timeline = Events; + Room(Connection* connection, QString id); virtual ~Room(); Q_INVOKABLE QString id() const; - Q_INVOKABLE QList<Event*> messageEvents() const; + Q_INVOKABLE Timeline messageEvents() const; Q_INVOKABLE QString name() const; Q_INVOKABLE QStringList aliases() const; Q_INVOKABLE QString canonicalAlias() const; |