diff options
author | Ilya Kitaev <mbg033@gmail.com> | 2016-04-20 13:17:27 +0300 |
---|---|---|
committer | Ilya Kitaev <mbg033@gmail.com> | 2016-04-20 13:17:27 +0300 |
commit | b6aaf53a6074e8e7181da5c3275e9fef56bf20da (patch) | |
tree | 97fde5089cc207a4746f690eae30c081e94dd239 /src/wallet/api/transaction_history.h | |
parent | api implementation splitted over separate files (diff) | |
download | monero-b6aaf53a6074e8e7181da5c3275e9fef56bf20da.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; }; } |