aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/DaemonManager.h
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-03-26 12:57:14 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-03-26 12:57:14 -0500
commite4d75c6680bb3ed7bccdf00e8e319b25b6a7be21 (patch)
tree593b10a28ca322ae36d582df236663f7e2a3f681 /src/daemon/DaemonManager.h
parent278458bb646cbb0d4361106cff424807812e5bda (diff)
parentc8f0cf354390af1908b3f99e5621eed8c1fab9ed (diff)
downloadmonzero-gui-e4d75c6680bb3ed7bccdf00e8e319b25b6a7be21.tar.gz
monzero-gui-e4d75c6680bb3ed7bccdf00e8e319b25b6a7be21.tar.xz
monzero-gui-e4d75c6680bb3ed7bccdf00e8e319b25b6a7be21.zip
Merge pull request #1161
c8f0cf3 Stagenet
Diffstat (limited to 'src/daemon/DaemonManager.h')
-rw-r--r--src/daemon/DaemonManager.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/daemon/DaemonManager.h b/src/daemon/DaemonManager.h
index d081ad7d..1c904a23 100644
--- a/src/daemon/DaemonManager.h
+++ b/src/daemon/DaemonManager.h
@@ -5,6 +5,7 @@
#include <QUrl>
#include <QProcess>
#include <QVariantMap>
+#include "NetworkType.h"
class DaemonManager : public QObject
{
@@ -14,21 +15,21 @@ public:
static DaemonManager * instance(const QStringList *args);
- Q_INVOKABLE bool start(const QString &flags, bool testnet, const QString &dataDir = "", const QString &bootstrapNodeAddress = "");
- Q_INVOKABLE bool stop(bool testnet);
+ Q_INVOKABLE bool start(const QString &flags, NetworkType::Type nettype, const QString &dataDir = "", const QString &bootstrapNodeAddress = "");
+ Q_INVOKABLE bool stop(NetworkType::Type nettype);
// return true if daemon process is started
- Q_INVOKABLE bool running(bool testnet) const;
+ Q_INVOKABLE bool running(NetworkType::Type nettype) const;
// Send daemon command from qml and prints output in console window.
- Q_INVOKABLE bool sendCommand(const QString &cmd, bool testnet) const;
+ Q_INVOKABLE bool sendCommand(const QString &cmd, NetworkType::Type nettype) const;
Q_INVOKABLE void exit();
Q_INVOKABLE QVariantMap validateDataDir(const QString &dataDir) const;
private:
- bool sendCommand(const QString &cmd, bool testnet, QString &message) const;
- bool startWatcher(bool testnet) const;
- bool stopWatcher(bool testnet) const;
+ bool sendCommand(const QString &cmd, NetworkType::Type nettype, QString &message) const;
+ bool startWatcher(NetworkType::Type nettype) const;
+ bool stopWatcher(NetworkType::Type nettype) const;
signals:
void daemonStarted() const;
void daemonStopped() const;