aboutsummaryrefslogtreecommitdiff
path: root/connection.h
diff options
context:
space:
mode:
authorRoman Plášil <me@rplasil.name>2017-08-16 13:56:13 +0800
committerRoman Plášil <me@rplasil.name>2017-08-16 14:09:54 +0800
commit6ae8e3d78b5c4a75ca7d5ca88af730071047d148 (patch)
treed295ad7bff2fcf5ac19f0f35ebe5bd355b928dca /connection.h
parentc1929dc22c87ac61e5369cb752e6ddd0ef6a79bf (diff)
downloadlibquotient-6ae8e3d78b5c4a75ca7d5ca88af730071047d148.tar.gz
libquotient-6ae8e3d78b5c4a75ca7d5ca88af730071047d148.zip
Implement saving save to enable incremental sync even after shutdown
Diffstat (limited to 'connection.h')
-rw-r--r--connection.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/connection.h b/connection.h
index f199ed35..58a3de6b 100644
--- a/connection.h
+++ b/connection.h
@@ -31,6 +31,7 @@ namespace QMatrixClient
class ConnectionData;
class SyncJob;
+ class SyncData;
class RoomMessagesJob;
class PostReceiptJob;
class MediaThumbnailJob;
@@ -143,6 +144,15 @@ namespace QMatrixClient
*/
virtual Room* createRoom(const QString& roomId);
+ /**
+ * Returns the path to file for saving state (rooms, presence, ...)
+ */
+ QString getStateSaveFile() const;
+
+ /**
+ * Completes loading sync data.
+ */
+ void onSyncSuccess(SyncData &data);
private:
class Private;
Private* d;