diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-05-05 22:24:00 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-06-23 16:01:33 +0300 |
commit | 374577018d9e32a6f50e9fb23deb27b98da8ae67 (patch) | |
tree | f6aabb2c352562bcb0c8d6601fcaf583ec7a9ebe /src/wallet/wallet2_api.h | |
parent | TransactionHistory continued (diff) | |
download | monero-374577018d9e32a6f50e9fb23deb27b98da8ae67.tar.xz |
started WalletListener
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r-- | src/wallet/wallet2_api.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/wallet/wallet2_api.h b/src/wallet/wallet2_api.h index 43f5c9472..8e0830746 100644 --- a/src/wallet/wallet2_api.h +++ b/src/wallet/wallet2_api.h @@ -103,6 +103,13 @@ struct TransactionHistory }; +struct WalletListener +{ + virtual ~WalletListener() = 0; + virtual void moneySpent(const std::string &txId, uint64_t amount); + virtual void moneyReceived(const std::string &txId, uint64_t amount); +}; + /** * @brief Interface for wallet operations. @@ -141,6 +148,7 @@ struct Wallet virtual PendingTransaction * createTransaction(const std::string &dst_addr, uint64_t amount) = 0; virtual void disposeTransaction(PendingTransaction * t) = 0; virtual TransactionHistory * history() const = 0; + virtual void setListener(WalletListener *) = 0; }; /** |