aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2_api.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-11-07 12:00:29 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-11-07 12:00:29 +0000
commit63fe6fd9ba3d7fe56564543b877a962e3c7eea53 (patch)
treeb78d8c122757a2fc8581c8fc0eb8e62084c01f18 /src/wallet/wallet2_api.h
parentMerge pull request #1295 (diff)
downloadmonero-63fe6fd9ba3d7fe56564543b877a962e3c7eea53.tar.xz
wallet2_api: allow connection to return "yes, but wrong version"
Diffstat (limited to '')
-rw-r--r--src/wallet/wallet2_api.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h
index 8427ba250..aa5edd2f2 100644
--- a/src/wallet/wallet2_api.h
+++ b/src/wallet/wallet2_api.h
@@ -159,6 +159,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;
@@ -243,7 +249,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;