aboutsummaryrefslogtreecommitdiff
path: root/jobs/syncjob.h
diff options
context:
space:
mode:
Diffstat (limited to 'jobs/syncjob.h')
-rw-r--r--jobs/syncjob.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/jobs/syncjob.h b/jobs/syncjob.h
index 507d46eb..abbef23a 100644
--- a/jobs/syncjob.h
+++ b/jobs/syncjob.h
@@ -30,12 +30,22 @@ namespace QMatrixClient
class SyncRoomData
{
public:
+ class EventList : public QList<Event*>
+ {
+ private:
+ QString jsonKey;
+ public:
+ explicit EventList(QString k) : jsonKey(k) { }
+ void fromJson(const QJsonObject& roomContents);
+ };
+
QString roomId;
JoinState joinState;
- QList<Event*> state;
- QList<Event*> timeline;
- QList<Event*> ephemeral;
- QList<Event*> accountData;
+ EventList state;
+ EventList timeline;
+ EventList ephemeral;
+ EventList accountData;
+ EventList inviteState;
bool timelineLimited;
QString timelinePrevBatch;