1 #ifndef MINTINGTABLEMODEL_H
2 #define MINTINGTABLEMODEL_H
5 #include <QAbstractTableModel>
9 class MintingTablePriv;
10 class MintingFilterProxy;
14 class MintingTableModel : public QAbstractTableModel
18 explicit MintingTableModel(CWallet * wallet, WalletModel *parent = 0);
31 void setMintingProxyModel(MintingFilterProxy *mintingProxy);
32 int rowCount(const QModelIndex &parent) const;
33 int columnCount(const QModelIndex &parent) const;
34 QVariant data(const QModelIndex &index, int role) const;
35 QVariant headerData(int section, Qt::Orientation orientation, int role) const;
36 QModelIndex index(int row, int column, const QModelIndex & parent = QModelIndex()) const;
38 void setMintingInterval(int interval);
42 WalletModel *walletModel;
45 MintingTablePriv *priv;
46 MintingFilterProxy *mintingProxyModel;
48 QString lookupAddress(const std::string &address, bool tooltip) const;
50 double getDayToMint(KernelRecord *wtx) const;
51 QString formatDayToMint(KernelRecord *wtx) const;
52 QString formatTxAddress(const KernelRecord *wtx, bool tooltip) const;
53 QString formatTxHash(const KernelRecord *wtx) const;
54 QString formatTxAge(const KernelRecord *wtx) const;
55 QString formatTxBalance(const KernelRecord *wtx) const;
56 QString formatTxCoinDay(const KernelRecord *wtx) const;
57 QString formatTxPoSReward(KernelRecord *wtx) const;
61 friend class MintingTablePriv;
64 #endif // MINTINGTABLEMODEL_H