aboutsummaryrefslogtreecommitdiff
path: root/jobs/syncjob.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-03-28 10:11:56 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-03-28 10:11:56 +0900
commit0f85d696c595fddb47ffa4eaec305d93e2ac8ab0 (patch)
treeb5b648115723ed9a60d6f6ddef095c7900484e84 /jobs/syncjob.h
parent93dc89d9353e9f30d42528d8ffaba992f58139aa (diff)
parentf213e02daa6b9e83e8e76d1576e446357c6c3bc7 (diff)
downloadlibquotient-0f85d696c595fddb47ffa4eaec305d93e2ac8ab0.tar.gz
libquotient-0f85d696c595fddb47ffa4eaec305d93e2ac8ab0.zip
Merge branch 'kitsune-unread-messages-count'
Diffstat (limited to 'jobs/syncjob.h')
-rw-r--r--jobs/syncjob.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/jobs/syncjob.h b/jobs/syncjob.h
index 5956e73b..919060be 100644
--- a/jobs/syncjob.h
+++ b/jobs/syncjob.h
@@ -53,6 +53,7 @@ namespace QMatrixClient
bool timelineLimited;
QString timelinePrevBatch;
+ int unreadCount;
int highlightCount;
int notificationCount;
@@ -60,6 +61,8 @@ namespace QMatrixClient
const QJsonObject& room_);
SyncRoomData(SyncRoomData&&) = default;
SyncRoomData& operator=(SyncRoomData&&) = default;
+
+ static const QString UnreadCountKey;
};
// QVector cannot work with non-copiable objects, std::vector can.
using SyncDataList = std::vector<SyncRoomData>;