diff options
author | link2xt <link2xt@testrun.org> | 2021-02-19 04:29:47 +0300 |
---|---|---|
committer | link2xt <link2xt@testrun.org> | 2021-02-19 04:29:47 +0300 |
commit | 7bbdbbe7fbc95573876657bd483a729ae04a2717 (patch) | |
tree | 61aedac0174ad2a50a55297519074b039f556a14 | |
parent | 818e028807b80be0b3c5265c7b7ca7376e76acf1 (diff) | |
download | kdeltachat-7bbdbbe7fbc95573876657bd483a729ae04a2717.tar.gz kdeltachat-7bbdbbe7fbc95573876657bd483a729ae04a2717.zip |
Context: implement startIo, stopIo and maybeNetwork
They are not supposed to be used as they can be called from account manager, just for completeness.
-rw-r--r-- | context.cpp | 18 | ||||
-rw-r--r-- | context.h | 3 |
2 files changed, 21 insertions, 0 deletions
diff --git a/context.cpp b/context.cpp index 1e44f7e..cc415f0 100644 --- a/context.cpp +++ b/context.cpp @@ -28,6 +28,24 @@ Context::isConfigured() const return dc_is_configured(m_context); } +void +Context::startIo() +{ + dc_start_io(m_context); +} + +void +Context::stopIo() +{ + dc_stop_io(m_context); +} + +void +Context::maybeNetwork() +{ + dc_maybe_network(m_context); +} + QString Context::getInfo() { @@ -22,6 +22,9 @@ public: Q_INVOKABLE void configure(); Q_INVOKABLE bool isConfigured() const; Q_INVOKABLE QString getInfo(); + Q_INVOKABLE void startIo(); + Q_INVOKABLE void stopIo(); + Q_INVOKABLE void maybeNetwork(); Q_INVOKABLE DcChatlist *getChatlist(); Q_INVOKABLE DcChat *getChat(uint32_t chatId); Q_INVOKABLE QVariantList getMsgIdList(uint32_t chatId); |