aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/transaction_history.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wallet/api/transaction_history.h')
-rw-r--r--src/wallet/api/transaction_history.h17
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;
};
}