diff options
author | Roman Plášil <me@rplasil.name> | 2017-08-16 13:56:13 +0800 |
---|---|---|
committer | Roman Plášil <me@rplasil.name> | 2017-08-16 14:09:54 +0800 |
commit | 6ae8e3d78b5c4a75ca7d5ca88af730071047d148 (patch) | |
tree | d295ad7bff2fcf5ac19f0f35ebe5bd355b928dca /connection.h | |
parent | c1929dc22c87ac61e5369cb752e6ddd0ef6a79bf (diff) | |
download | libquotient-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.h | 10 |
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; |