diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2019-02-11 09:10:55 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-11 09:10:55 +0900 |
commit | e98ec84ab31b2dc656597ac5c87a8299b6c8aed8 (patch) | |
tree | e26b828c55ea563e3486167b53a12959d7b35565 /lib/connection.h | |
parent | f438d37b169965ee0a9937b5178560a653f1197b (diff) | |
parent | 73c836239bfa35713ad76d5e205ce2f2dceffffd (diff) | |
download | libquotient-e98ec84ab31b2dc656597ac5c87a8299b6c8aed8.tar.gz libquotient-e98ec84ab31b2dc656597ac5c87a8299b6c8aed8.zip |
Merge pull request #274 from a-andreyev/aa13q-loop-logic
Connection: additional infinite sync loop logic
Diffstat (limited to 'lib/connection.h')
-rw-r--r-- | lib/connection.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/connection.h b/lib/connection.h index 9e4121f4..45b691e1 100644 --- a/lib/connection.h +++ b/lib/connection.h @@ -371,6 +371,8 @@ namespace QMatrixClient void logout(); void sync(int timeout = -1); + void syncLoop(int timeout = -1); + void stopSync(); QString nextBatchToken() const; @@ -679,6 +681,9 @@ namespace QMatrixClient */ void onSyncSuccess(SyncData &&data, bool fromCache = false); + protected slots: + void syncLoopIteration(); + private: class Private; std::unique_ptr<Private> d; |