monero-gui/src/libwalletqt/TransactionHistory.h

44 lines
873 B
C
Raw Normal View History

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);
// 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();
quint64 count() const;
2016-06-08 10:53:24 +00:00
signals:
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