aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/DaemonManager.h
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2019-09-27 10:56:42 +0000
committerxiphon <xiphon@protonmail.com>2019-10-07 10:39:30 +0000
commit32257c8fab83cab89811111284cdca8bf5e9dbac (patch)
tree73fc6c6320c727728c70ff973b8f19f900d027de /src/daemon/DaemonManager.h
parentd3b81cb6f8b9e79bc8bda675f556d5288916af56 (diff)
downloadmonzero-gui-32257c8fab83cab89811111284cdca8bf5e9dbac.tar.gz
monzero-gui-32257c8fab83cab89811111284cdca8bf5e9dbac.tar.xz
monzero-gui-32257c8fab83cab89811111284cdca8bf5e9dbac.zip
DaemonManager: implement async sendCommand
Diffstat (limited to 'src/daemon/DaemonManager.h')
-rw-r--r--src/daemon/DaemonManager.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/daemon/DaemonManager.h b/src/daemon/DaemonManager.h
index 0df97c63..a03d3d9b 100644
--- a/src/daemon/DaemonManager.h
+++ b/src/daemon/DaemonManager.h
@@ -51,14 +51,14 @@ public:
// return true if daemon process is started
Q_INVOKABLE void runningAsync(NetworkType::Type nettype, const QJSValue& callback) const;
// Send daemon command from qml and prints output in console window.
- Q_INVOKABLE bool sendCommand(const QString &cmd, NetworkType::Type nettype) const;
+ Q_INVOKABLE void sendCommandAsync(const QStringList &cmd, NetworkType::Type nettype, const QJSValue& callback) const;
Q_INVOKABLE void exit();
Q_INVOKABLE QVariantMap validateDataDir(const QString &dataDir) const;
private:
bool running(NetworkType::Type nettype) const;
- bool sendCommand(const QString &cmd, NetworkType::Type nettype, QString &message) const;
+ bool sendCommand(const QStringList &cmd, NetworkType::Type nettype, QString &message) const;
bool startWatcher(NetworkType::Type nettype) const;
bool stopWatcher(NetworkType::Type nettype) const;
signals: