5 #ifndef BITCOIN_QT_RECENTREQUESTSTABLEMODEL_H
6 #define BITCOIN_QT_RECENTREQUESTSTABLEMODEL_H
10 #include <QAbstractTableModel>
11 #include <QStringList>
29 template <
typename Stream,
typename Operation>
31 unsigned int nDate =
date.toTime_t();
38 if (ser_action.ForRead())
39 date = QDateTime::fromTime_t(nDate);
76 int rowCount(
const QModelIndex &parent)
const;
78 QVariant
data(
const QModelIndex &
index,
int role)
const;
79 bool setData(
const QModelIndex &
index,
const QVariant &value,
int role);
80 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
81 QModelIndex
index(
int row,
int column,
const QModelIndex &parent)
const;
82 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex());
83 Qt::ItemFlags
flags(
const QModelIndex &
index)
const;
92 void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder);
98 QList<RecentRequestEntry>
list;
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances,...
static const int CURRENT_VERSION
SendCoinsRecipient recipient
void SerializationOp(Stream &s, Operation ser_action)
RecentRequestEntryLessThan(int nColumn, Qt::SortOrder fOrder)
bool operator()(RecentRequestEntry &left, RecentRequestEntry &right) const
Model for list of recently generated payment requests / bitcoin: URIs.
int rowCount(const QModelIndex &parent) const
QVariant headerData(int section, Qt::Orientation orientation, int role) const
bool setData(const QModelIndex &index, const QVariant &value, int role)
bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
void sort(int column, Qt::SortOrder order=Qt::AscendingOrder)
~RecentRequestsTableModel()
Qt::ItemFlags flags(const QModelIndex &index) const
int columnCount(const QModelIndex &parent) const
const RecentRequestEntry & entry(int row) const
QModelIndex index(int row, int column, const QModelIndex &parent) const
QList< RecentRequestEntry > list
void updateAmountColumnTitle()
Updates the column title to "Amount (DisplayUnit)" and emits headerDataChanged() signal for table hea...
QString getAmountTitle()
Gets title for amount column including current display unit if optionsModel reference available.
RecentRequestsTableModel(CWallet *wallet, WalletModel *parent)
QVariant data(const QModelIndex &index, int role) const
WalletModel * walletModel
void addNewRequest(const SendCoinsRecipient &recipient)
int64_t nReceiveRequestsMaxId
Interface to Bitcoin wallet from Qt view code.