diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-04-20 13:17:27 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-06-23 15:50:17 +0300 |
commit | 663ed04eb83c7185c7f7c480c685647bfd29b376 (patch) | |
tree | 1854e8c2ae340313c74a3e0c8a110cc4e93696a6 /src/wallet/api/transaction_history.h | |
parent | api implementation splitted over separate files (diff) | |
download | monero-663ed04eb83c7185c7f7c480c685647bfd29b376.tar.xz |
transaction history api in progress
Diffstat (limited to 'src/wallet/api/transaction_history.h')
-rw-r--r-- | src/wallet/api/transaction_history.h | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/wallet/api/transaction_history.h b/src/wallet/api/transaction_history.h index cab0e0dbc..1ff729b54 100644 --- a/src/wallet/api/transaction_history.h +++ b/src/wallet/api/transaction_history.h @@ -32,12 +32,23 @@ namespace Bitmonero { +class TransactionInfo; +class WalletImpl; + class TransactionHistoryImpl : public TransactionHistory { +public: + TransactionHistoryImpl(WalletImpl * wallet); + ~TransactionHistoryImpl(); virtual int count() const; - virtual TransactionInfo * transaction(int index) const = 0; - virtual TransactionInfo * transaction(const std::string &id) const = 0; - virtual std::vector<TransactionInfo*> getAll() const = 0; + virtual TransactionInfo * transaction(int index) const; + virtual TransactionInfo * transaction(const std::string &id) const; + virtual std::vector<TransactionInfo*> getAll() const; + virtual void refresh(); + +private: + std::vector<TransactionInfo*> m_history; + WalletImpl *m_wallet; }; } |