1 #ifndef FABCOIN_QT_TOKENTOKENTRANSACTIONTABLEMODEL_H 2 #define FABCOIN_QT_TOKENTOKENTRANSACTIONTABLEMODEL_H 6 #include <QAbstractTableModel> 71 int rowCount(
const QModelIndex &parent)
const;
73 QVariant
data(
const QModelIndex &
index,
int role)
const;
74 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
75 QModelIndex
index(
int row,
int column,
const QModelIndex & parent = QModelIndex())
const;
114 #endif // FABCOIN_QT_TOKENTOKENTRANSACTIONTABLEMODEL_H void subscribeToCoreSignals()
Date and time this transaction was created.
QString formatTxStatus(const TokenTransactionRecord *wtx) const
Transaction status (TokenTransactionRecord::Status)
Formatted amount, with unit.
QString lookupAddress(const std::string &address, const std::string &label, bool tooltip) const
WalletModel * walletModel
void setProcessingQueuedTransactions(bool value)
QVariant data(const QModelIndex &index, int role) const
UI model for a token transaction.
QString formatTxToAddress(const TokenTransactionRecord *wtx, bool tooltip) const
Transaction data, hex-encoded.
QVariant addressColor(const TokenTransactionRecord *wtx) const
RoleIndex
Roles to get specific information from a transaction row.
QVariant headerData(int section, Qt::Orientation orientation, int role) const
QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Net amount of transaction.
int rowCount(const QModelIndex &parent) const
Is transaction confirmed?
bool fProcessingQueuedTransactions
QString formatTxDate(const TokenTransactionRecord *wtx) const
UI model for the transaction table of a wallet.
int columnCount(const QModelIndex &parent) const
QString formatTxTokenSymbol(const TokenTransactionRecord *wtx) const
void unsubscribeFromCoreSignals()
QString formatTxType(const TokenTransactionRecord *wtx) const
QVariant txAddressDecoration(const TokenTransactionRecord *wtx) const
Formatted amount, without brackets when unconfirmed.
Whole transaction as plain text.
void updateTransaction(const QString &hash, int status, bool showTransaction)
Interface to Fabcoin wallet from Qt view code.
QString formatTxAmount(const TokenTransactionRecord *wtx, bool showUnconfirmed=true, FabcoinUnits::SeparatorStyle separators=FabcoinUnits::separatorStandard) const
TokenTransactionTableModel(const PlatformStyle *platformStyle, CWallet *wallet, WalletModel *parent=0)
void emitDataChanged(int index)
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
Long description (HTML format)
QVariant txStatusDecoration(const TokenTransactionRecord *wtx) const
const PlatformStyle * platformStyle
bool processingQueuedTransactions()
Label of address related to transaction.
struct evm_uint160be address(struct evm_env *env)
QString formatTooltip(const TokenTransactionRecord *rec) const
~TokenTransactionTableModel()
QString formatTxAmountWithUnit(const TokenTransactionRecord *wtx, bool showUnconfirmed=true, FabcoinUnits::SeparatorStyle separators=FabcoinUnits::separatorStandard) const
void updateConfirmations()
TokenTransactionTablePriv * priv