diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-11-22 16:51:49 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-11-22 16:53:59 +0900 |
commit | 5fb74ca3d253b658fe77aaeb6a106cf6c0a9e7f0 (patch) | |
tree | 203d3533550e6c665220578f7922317833efb22c /lib/syncdata.h | |
parent | 0c3a45356a803baa0eb5e553262a85cac897ac4f (diff) | |
download | libquotient-5fb74ca3d253b658fe77aaeb6a106cf6c0a9e7f0.tar.gz libquotient-5fb74ca3d253b658fe77aaeb6a106cf6c0a9e7f0.zip |
Save state cache per-room
Closes #257.
Diffstat (limited to 'lib/syncdata.h')
-rw-r--r-- | lib/syncdata.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/syncdata.h b/lib/syncdata.h index d8007db9..aa8948bc 100644 --- a/lib/syncdata.h +++ b/lib/syncdata.h @@ -59,7 +59,7 @@ namespace QMatrixClient { * \return the list of rooms with missing cache files; always * empty when parsing response from /sync */ - void parseJson(const QJsonObject& json); + void parseJson(const QJsonObject& json, const QString& baseDir = {}); Events&& takePresenceData(); Events&& takeAccountData(); @@ -70,7 +70,8 @@ namespace QMatrixClient { QStringList unresolvedRooms() const { return unresolvedRoomIds; } - static std::pair<int, int> cacheVersion() { return { 8, 0 }; } + static std::pair<int, int> cacheVersion() { return { 9, 0 }; } + static QString fileNameForRoom(QString roomId); private: QString nextBatch_; |