aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/DaemonManager.h
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2017-05-04 14:04:46 +0200
committerJaquee <jaquee.monero@gmail.com>2017-06-02 23:39:30 +0200
commit9037eed80574544ece21a5cddad5ccf0f07c7773 (patch)
tree740d2851872415ea0d2ca26613bd1c791ff9f243 /src/daemon/DaemonManager.h
parent0cb69002957c2e69850a2a32f920958996b62c3e (diff)
downloadmonzero-gui-9037eed80574544ece21a5cddad5ccf0f07c7773.tar.gz
monzero-gui-9037eed80574544ece21a5cddad5ccf0f07c7773.tar.xz
monzero-gui-9037eed80574544ece21a5cddad5ccf0f07c7773.zip
DaemonManager: support dataDir parameter + validator
Diffstat (limited to 'src/daemon/DaemonManager.h')
-rw-r--r--src/daemon/DaemonManager.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/daemon/DaemonManager.h b/src/daemon/DaemonManager.h
index 428630e1..2b9c8b84 100644
--- a/src/daemon/DaemonManager.h
+++ b/src/daemon/DaemonManager.h
@@ -4,6 +4,7 @@
#include <QObject>
#include <QUrl>
#include <QProcess>
+#include <QVariantMap>
class DaemonManager : public QObject
{
@@ -13,7 +14,7 @@ public:
static DaemonManager * instance(const QStringList *args);
- Q_INVOKABLE bool start(const QString &flags, bool testnet);
+ Q_INVOKABLE bool start(const QString &flags, bool testnet, const QString &dataDir = "");
Q_INVOKABLE bool stop(bool testnet);
// return true if daemon process is started
@@ -21,6 +22,7 @@ public:
// Send daemon command from qml and prints output in console window.
Q_INVOKABLE bool sendCommand(const QString &cmd, bool testnet) const;
Q_INVOKABLE void exit();
+ Q_INVOKABLE QVariantMap validateDataDir(const QString &dataDir) const;
private: