2016-06-08 10:53:24 +00:00
|
|
|
#ifndef TRANSACTIONHISTORY_H
|
|
|
|
#define TRANSACTIONHISTORY_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
#include <QList>
|
|
|
|
|
|
|
|
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);
|
2016-10-06 21:47:28 +00:00
|
|
|
// Q_INVOKABLE TransactionInfo * transaction(const QString &id);
|
2016-06-08 10:53:24 +00:00
|
|
|
Q_INVOKABLE QList<TransactionInfo*> getAll() const;
|
|
|
|
Q_INVOKABLE void refresh();
|
2016-10-02 18:40:40 +00:00
|
|
|
quint64 count() const;
|
2016-06-08 10:53:24 +00:00
|
|
|
|
|
|
|
signals:
|
2016-10-06 21:47:28 +00:00
|
|
|
void refreshStarted() const;
|
|
|
|
void refreshFinished() const;
|
2016-06-08 10:53:24 +00:00
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
explicit TransactionHistory(Bitmonero::TransactionHistory * pimpl, QObject *parent = 0);
|
|
|
|
|
|
|
|
private:
|
|
|
|
friend class Wallet;
|
|
|
|
|
|
|
|
Bitmonero::TransactionHistory * m_pimpl;
|
|
|
|
mutable QList<TransactionInfo*> m_tinfo;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // TRANSACTIONHISTORY_H
|