diff options
author | Russell Yanofsky <russ@yanofsky.org> | 2017-04-17 15:10:47 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2018-04-04 16:52:40 -0400 |
commit | 5fba3af21e44ab7552c57782de430c1f4cfd6697 (patch) | |
tree | dd34ef0bbf69f24f9bd4cc2a615a0398e6cf79a9 /src/interface/node.h | |
parent | c2f672fb1960399389dea9cdd8f76d7156c2c88b (diff) | |
download | bitcoin-5fba3af21e44ab7552c57782de430c1f4cfd6697.tar.xz |
Remove direct bitcoin calls from qt/splashscreen.cpp
Diffstat (limited to 'src/interface/node.h')
-rw-r--r-- | src/interface/node.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/interface/node.h b/src/interface/node.h index 60ef9cce1b..d1749871bf 100644 --- a/src/interface/node.h +++ b/src/interface/node.h @@ -17,6 +17,7 @@ class proxyType; namespace interface { class Handler; +class Wallet; //! Top-level interface for a bitcoin node (bitcoind process). class Node @@ -87,6 +88,14 @@ public: const std::string& caption, unsigned int style)>; virtual std::unique_ptr<Handler> handleQuestion(QuestionFn fn) = 0; + + //! Register handler for progress messages. + using ShowProgressFn = std::function<void(const std::string& title, int progress, bool resume_possible)>; + virtual std::unique_ptr<Handler> handleShowProgress(ShowProgressFn fn) = 0; + + //! Register handler for load wallet messages. + using LoadWalletFn = std::function<void(std::unique_ptr<Wallet> wallet)>; + virtual std::unique_ptr<Handler> handleLoadWallet(LoadWalletFn fn) = 0; }; //! Return implementation of Node interface. |