aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/DaemonManager.h
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2022-10-07 01:49:31 +0200
committerselsta <selsta@sent.at>2022-10-07 02:28:44 +0200
commit80ade41905cff40eef94e27d39f14f41e887c96d (patch)
treef039b95585b3f7d4f9e0f59c2732b2c346cbcb94 /src/daemon/DaemonManager.h
parentaef4a982dc644b3e971a89c8b65dd57d21d5e085 (diff)
downloadmonzero-gui-80ade41905cff40eef94e27d39f14f41e887c96d.tar.gz
monzero-gui-80ade41905cff40eef94e27d39f14f41e887c96d.tar.xz
monzero-gui-80ade41905cff40eef94e27d39f14f41e887c96d.zip
DaemonManager: take dataDir into account when sending cmd
Diffstat (limited to 'src/daemon/DaemonManager.h')
-rw-r--r--src/daemon/DaemonManager.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/daemon/DaemonManager.h b/src/daemon/DaemonManager.h
index 2f884665..5a48a489 100644
--- a/src/daemon/DaemonManager.h
+++ b/src/daemon/DaemonManager.h
@@ -48,23 +48,23 @@ public:
~DaemonManager();
Q_INVOKABLE bool start(const QString &flags, NetworkType::Type nettype, const QString &dataDir = "", const QString &bootstrapNodeAddress = "", bool noSync = false, bool pruneBlockchain = false);
- Q_INVOKABLE void stopAsync(NetworkType::Type nettype, const QJSValue& callback);
+ Q_INVOKABLE void stopAsync(NetworkType::Type nettype, const QString &dataDir, const QJSValue& callback);
Q_INVOKABLE bool noSync() const noexcept;
// return true if daemon process is started
- Q_INVOKABLE void runningAsync(NetworkType::Type nettype, const QJSValue& callback) const;
+ Q_INVOKABLE void runningAsync(NetworkType::Type nettype, const QString &dataDir, const QJSValue& callback) const;
// Send daemon command from qml and prints output in console window.
- Q_INVOKABLE void sendCommandAsync(const QStringList &cmd, NetworkType::Type nettype, const QJSValue& callback) const;
+ Q_INVOKABLE void sendCommandAsync(const QStringList &cmd, NetworkType::Type nettype, const QString &dataDir, const QJSValue& callback) const;
Q_INVOKABLE void exit();
Q_INVOKABLE QVariantMap validateDataDir(const QString &dataDir) const;
Q_INVOKABLE bool checkLmdbExists(QString datadir);
private:
- bool running(NetworkType::Type nettype) const;
- bool sendCommand(const QStringList &cmd, NetworkType::Type nettype, QString &message) const;
- bool startWatcher(NetworkType::Type nettype) const;
- bool stopWatcher(NetworkType::Type nettype) const;
+ bool running(NetworkType::Type nettype, const QString &dataDir) const;
+ bool sendCommand(const QStringList &cmd, NetworkType::Type nettype, const QString &dataDir, QString &message) const;
+ bool startWatcher(NetworkType::Type nettype, const QString &dataDir) const;
+ bool stopWatcher(NetworkType::Type nettype, const QString &dataDir) const;
signals:
void daemonStarted() const;
void daemonStopped() const;