diff options
Diffstat (limited to 'connection.h')
-rw-r--r-- | connection.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/connection.h b/connection.h index e3f33155..f199ed35 100644 --- a/connection.h +++ b/connection.h @@ -83,6 +83,10 @@ namespace QMatrixClient Q_INVOKABLE SyncJob* syncJob() const; Q_INVOKABLE int millisToReconnect() const; + /** call this before first sync */ + Q_INVOKABLE void loadState(); + Q_INVOKABLE void saveState(); + template <typename JobT, typename... JobArgTs> JobT* callApi(JobArgTs... jobArgs) const { |