diff options
author | Riccardo Spagni <ric@spagni.net> | 2016-11-08 22:53:13 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2016-11-08 22:53:13 +0200 |
commit | 7c7a6cf2f8b8cb2675f7f2eab972c2db981ac6a8 (patch) | |
tree | 1de659803d1ea4859e787ddcac54fe8281bb8ce4 /src/wallet/wallet2_api.h | |
parent | Merge pull request #1301 (diff) | |
parent | wallet2_api: allow connection to return "yes, but wrong version" (diff) | |
download | monero-7c7a6cf2f8b8cb2675f7f2eab972c2db981ac6a8.tar.xz |
Merge pull request #1302
63fe6fd wallet2_api: allow connection to return "yes, but wrong version" (moneromooo-monero)
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r-- | src/wallet/wallet2_api.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index afa4aa5fe..da1dbd6e1 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -160,6 +160,12 @@ struct Wallet Status_Error }; + enum ConnectionStatus { + ConnectionStatus_Disconnected, + ConnectionStatus_Connected, + ConnectionStatus_WrongVersion + }; + virtual ~Wallet() = 0; virtual std::string seed() const = 0; virtual std::string getSeedLanguage() const = 0; @@ -244,7 +250,7 @@ struct Wallet * @brief connected - checks if the wallet connected to the daemon * @return - true if connected */ - virtual bool connected() const = 0; + virtual ConnectionStatus connected() const = 0; virtual void setTrustedDaemon(bool arg) = 0; virtual bool trustedDaemon() const = 0; virtual uint64_t balance() const = 0; |