diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2022-12-01 23:42:04 -0600 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2022-12-01 23:42:04 -0600 |
| commit | ef2e711e15b4765e128ca7abddf87f194c6d755a (patch) | |
| tree | ef4bf0db7c857e8d7b2a61fa000b78d254a50bda /src/daemon/DaemonManager.h | |
| parent | 2ade73386751a03b895b155ecb6596de94cf4f16 (diff) | |
| parent | 80ade41905cff40eef94e27d39f14f41e887c96d (diff) | |
| download | monzero-gui-ef2e711e15b4765e128ca7abddf87f194c6d755a.tar.gz monzero-gui-ef2e711e15b4765e128ca7abddf87f194c6d755a.tar.xz monzero-gui-ef2e711e15b4765e128ca7abddf87f194c6d755a.zip | |
Merge pull request #4047
80ade41 DaemonManager: take dataDir into account when sending cmd (selsta)
Diffstat (limited to 'src/daemon/DaemonManager.h')
| -rw-r--r-- | src/daemon/DaemonManager.h | 14 |
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; |
