diff options
Diffstat (limited to 'src/daemon/DaemonManager.cpp')
| -rw-r--r-- | src/daemon/DaemonManager.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/daemon/DaemonManager.cpp b/src/daemon/DaemonManager.cpp index ecbe1784..4277e0bb 100644 --- a/src/daemon/DaemonManager.cpp +++ b/src/daemon/DaemonManager.cpp @@ -243,6 +243,14 @@ bool DaemonManager::running(NetworkType::Type nettype) const } return false; } + +void DaemonManager::runningAsync(NetworkType::Type nettype, const QJSValue& callback) const +{ + m_scheduler.run([this, nettype] { + return QJSValueList({running(nettype)}); + }, callback); +} + bool DaemonManager::sendCommand(const QString &cmd, NetworkType::Type nettype) const { QString message; |
