#ifndef TRANSACTIONHISTORY_H #define TRANSACTIONHISTORY_H #include #include namespace Bitmonero { class TransactionHistory; } class TransactionInfo; class TransactionHistory : public QObject { Q_OBJECT Q_PROPERTY(int count READ count) public: Q_INVOKABLE TransactionInfo *transaction(int index); // Q_INVOKABLE TransactionInfo * transaction(const QString &id); Q_INVOKABLE QList getAll() const; Q_INVOKABLE void refresh(); quint64 count() const; signals: void refreshStarted() const; void refreshFinished() const; public slots: private: explicit TransactionHistory(Bitmonero::TransactionHistory * pimpl, QObject *parent = 0); private: friend class Wallet; Bitmonero::TransactionHistory * m_pimpl; mutable QList m_tinfo; }; #endif // TRANSACTIONHISTORY_H