aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.h
diff options
context:
space:
mode:
authorAlexey Andreyev <aa13q@ya.ru>2019-01-30 19:30:07 +0300
committerAlexey Andreyev <aa13q@ya.ru>2019-01-30 19:32:26 +0300
commitcc7d034fa67196ad4950d3785aff64e4c5765855 (patch)
tree4398e7b9ee861f7d5d7d92ea314a4e21631f4c61 /lib/connection.h
parentf438d37b169965ee0a9937b5178560a653f1197b (diff)
downloadlibquotient-cc7d034fa67196ad4950d3785aff64e4c5765855.tar.gz
libquotient-cc7d034fa67196ad4950d3785aff64e4c5765855.zip
Connection: infinite sync loop logic by default
Diffstat (limited to 'lib/connection.h')
-rw-r--r--lib/connection.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/connection.h b/lib/connection.h
index 9e4121f4..dcc77824 100644
--- a/lib/connection.h
+++ b/lib/connection.h
@@ -678,6 +678,7 @@ namespace QMatrixClient
* Completes loading sync data.
*/
void onSyncSuccess(SyncData &&data, bool fromCache = false);
+ void getNewEvents();
private:
class Private;
@@ -702,6 +703,8 @@ namespace QMatrixClient
static room_factory_t _roomFactory;
static user_factory_t _userFactory;
+
+ int _saveStateCounter = 0;
};
} // namespace QMatrixClient
Q_DECLARE_METATYPE(QMatrixClient::Connection*)