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);
31 int rowCount(const QModelIndex &parent) const;
32 int columnCount(const QModelIndex &parent) const;
33 QVariant data(const QModelIndex &index, int role) const;
34 QVariant headerData(int section, Qt::Orientation orientation, int role) const;
35 QModelIndex index(int row, int column, const QModelIndex & parent = QModelIndex()) const;
37 void setMintingInterval(int interval);
41 WalletModel *walletModel;
44 MintingTablePriv *priv;
46 QString lookupAddress(const std::string &address, bool tooltip) const;
48 double getDayToMint(KernelRecord *wtx) const;
49 QString formatDayToMint(KernelRecord *wtx) const;
50 QString formatTxAddress(const KernelRecord *wtx, bool tooltip) const;
51 QString formatTxHash(const KernelRecord *wtx) const;
52 QString formatTxAge(const KernelRecord *wtx) const;
53 QString formatTxBalance(const KernelRecord *wtx) const;
54 QString formatTxCoinDay(const KernelRecord *wtx) const;
55 QString formatTxPoSReward(KernelRecord *wtx) const;
59 friend class MintingTablePriv;
62 #endif // MINTINGTABLEMODEL_H