aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2_api.h
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-07-10 17:17:23 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-07-18 23:02:47 +0300
commit9d2cb4f36ca7220bb05217547b72710b870f6e57 (patch)
treee0ced3eede4406ef4f4a020c0dbc09764c2cc62e /src/wallet/wallet2_api.h
parenthack to successfull linking for MSYS2 (diff)
downloadmonero-9d2cb4f36ca7220bb05217547b72710b870f6e57.tar.xz
WalletListener functionality
Diffstat (limited to 'src/wallet/wallet2_api.h')
-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 fb3f9a648..a51d38a71 100644
--- a/src/wallet/wallet2_api.h
+++ b/src/wallet/wallet2_api.h
@@ -116,7 +116,11 @@ struct WalletListener
virtual ~WalletListener() = 0;
virtual void moneySpent(const std::string &txId, uint64_t amount) = 0;
virtual void moneyReceived(const std::string &txId, uint64_t amount) = 0;
- // TODO: on_skip_transaction;
+ // generic callback, called when any event happened with the wallet;
+ virtual void updated() = 0;
+ // called when wallet refreshed by background thread or explicitly
+ virtual void refreshed() = 0;
+
};
@@ -188,6 +192,8 @@ struct Wallet
// TODO?
// virtual uint64_t unlockedDustBalance() const = 0;
virtual bool refresh() = 0;
+
+ virtual void refreshAsync() = 0;
/*!
* \brief createTransaction creates transaction. if dst_addr is an integrated address, payment_id is ignored
* \param dst_addr destination address as string