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();
39 if (ser_action.ForRead())
40 date = QDateTime::fromTime_t(nDate);
77 int rowCount(
const QModelIndex &parent)
const;
79 QVariant
data(
const QModelIndex &
index,
int role)
const;
80 bool setData(
const QModelIndex &
index,
const QVariant &value,
int role);
81 QVariant
headerData(
int section, Qt::Orientation orientation,
int role)
const;
82 QModelIndex
index(
int row,
int column,
const QModelIndex &parent)
const;
83 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex());
84 Qt::ItemFlags
flags(
const QModelIndex &
index)
const;
93 void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder);
99 QList<RecentRequestEntry>
list;
108 #endif // BITCOIN_QT_RECENTREQUESTSTABLEMODEL_H int rowCount(const QModelIndex &parent) const
RecentRequestEntryLessThan(int nColumn, Qt::SortOrder fOrder)
QVariant headerData(int section, Qt::Orientation orientation, int role) const
static const int CURRENT_VERSION
RecentRequestsTableModel(CWallet *wallet, WalletModel *parent)
void updateAmountColumnTitle()
void addNewRequest(const SendCoinsRecipient &recipient)
QVariant data(const QModelIndex &index, int role) const
const RecentRequestEntry & entry(int row) const
Qt::ItemFlags flags(const QModelIndex &index) const
QModelIndex index(int row, int column, const QModelIndex &parent) const
int columnCount(const QModelIndex &parent) const
void SerializationOp(Stream &s, Operation ser_action, int nType, int nVersion)
bool setData(const QModelIndex &index, const QVariant &value, int role)
int64_t nReceiveRequestsMaxId
bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
~RecentRequestsTableModel()
WalletModel * walletModel
SendCoinsRecipient recipient
bool operator()(RecentRequestEntry &left, RecentRequestEntry &right) const
QList< RecentRequestEntry > list
void sort(int column, Qt::SortOrder order=Qt::AscendingOrder)