aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/wallet2_api.h
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-05-05 22:24:00 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-05-05 22:24:00 +0300
commit5dbd2b8fc3aa97f3a2e14a378cf6b7afd16bd4e2 (patch)
treee91043b539a140f4c89b6343606f1eed9790bd02 /src/wallet/wallet2_api.h
parentTransactionHistory continued (diff)
downloadmonero-5dbd2b8fc3aa97f3a2e14a378cf6b7afd16bd4e2.tar.xz
started WalletListener
Diffstat (limited to 'src/wallet/wallet2_api.h')
-rw-r--r--src/wallet/wallet2_api.h8
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;
};
/**