1 #ifndef MINTINGTABLEMODEL_H
2 #define MINTINGTABLEMODEL_H
5 #include <QAbstractTableModel>
9 class MintingTablePriv;
13 class MintingTableModel : public QAbstractTableModel
17 explicit MintingTableModel(CWallet * wallet, WalletModel *parent = 0);
30 int rowCount(const QModelIndex &parent) const;
31 int columnCount(const QModelIndex &parent) const;
32 QVariant data(const QModelIndex &index, int role) const;
33 QVariant headerData(int section, Qt::Orientation orientation, int role) const;
34 QModelIndex index(int row, int column, const QModelIndex & parent = QModelIndex()) const;
36 void setMintingInterval(int interval);
40 WalletModel *walletModel;
43 MintingTablePriv *priv;
45 QString lookupAddress(const std::string &address, bool tooltip) const;
47 double getDayToMint(KernelRecord *wtx) const;
48 QString formatDayToMint(KernelRecord *wtx) const;
49 QString formatTxAddress(const KernelRecord *wtx, bool tooltip) const;
50 QString formatTxHash(const KernelRecord *wtx) const;
51 QString formatTxAge(const KernelRecord *wtx) const;
52 QString formatTxBalance(const KernelRecord *wtx) const;
53 QString formatTxCoinDay(const KernelRecord *wtx) const;
57 friend class MintingTablePriv;
60 #endif // MINTINGTABLEMODEL_H