aboutsummaryrefslogtreecommitdiff
path: root/src/interface/node.h
diff options
context:
space:
mode:
authorRussell Yanofsky <russ@yanofsky.org>2017-04-17 14:23:14 -0400
committerJohn Newbery <john@johnnewbery.com>2018-04-04 16:52:40 -0400
commitc0f2756be517feddacd7c6b89b9faa888b3fef8e (patch)
tree14986754eac1bc64cf1b409237bc1b6edc85ed26 /src/interface/node.h
parent71e0d90876efd11e2a4aeb8f3f806c5a1fd54b42 (diff)
downloadbitcoin-c0f2756be517feddacd7c6b89b9faa888b3fef8e.tar.xz
Remove direct bitcoin calls from qt/optionsmodel.cpp
Diffstat (limited to 'src/interface/node.h')
-rw-r--r--src/interface/node.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/interface/node.h b/src/interface/node.h
index b69ef160a3..368bade28b 100644
--- a/src/interface/node.h
+++ b/src/interface/node.h
@@ -5,10 +5,14 @@
#ifndef BITCOIN_INTERFACE_NODE_H
#define BITCOIN_INTERFACE_NODE_H
+#include <netaddress.h> // For Network
+
#include <functional>
#include <memory>
#include <string>
+class proxyType;
+
namespace interface {
class Handler;
@@ -22,6 +26,12 @@ public:
//! Set command line arguments.
virtual void parseParameters(int argc, const char* const argv[]) = 0;
+ //! Set a command line argument if it doesn't already have a value
+ virtual bool softSetArg(const std::string& arg, const std::string& value) = 0;
+
+ //! Set a command line boolean argument if it doesn't already have a value
+ virtual bool softSetBoolArg(const std::string& arg, bool value) = 0;
+
//! Load settings from configuration file.
virtual void readConfigFile(const std::string& conf_path) = 0;
@@ -49,6 +59,12 @@ public:
//! Start shutdown.
virtual void startShutdown() = 0;
+ //! Map port.
+ virtual void mapPort(bool use_upnp) = 0;
+
+ //! Get proxy.
+ virtual bool getProxy(Network net, proxyType& proxy_info) = 0;
+
//! Register handler for init messages.
using InitMessageFn = std::function<void(const std::string& message)>;
virtual std::unique_ptr<Handler> handleInitMessage(InitMessageFn fn) = 0;