5 #ifndef RECENTREQUESTSTABLEMODEL_H
6 #define RECENTREQUESTSTABLEMODEL_H
10 #include <QAbstractTableModel>
11 #include <QStringList>
31 unsigned int nDate = date.toTime_t();
34 nVersion = pthis->nVersion;
40 pthis->date = QDateTime::fromTime_t(nDate);
48 column(nColumn), order(fOrder) {}
77 int rowCount(
const QModelIndex &parent)
const;
78 int columnCount(
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;
89 void addNewRequest(
const std::string &recipient);
93 void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder);
98 QList<RecentRequestEntry>
list;
Model for list of recently generated payment requests / bitcoin: URIs.
int64_t nReceiveRequestsMaxId
RecentRequestEntryLessThan(int nColumn, Qt::SortOrder fOrder)
#define IMPLEMENT_SERIALIZE(statements)
const RecentRequestEntry & entry(int row) const
QList< RecentRequestEntry > list
static const int CURRENT_VERSION
SendCoinsRecipient recipient
WalletModel * walletModel
Interface to Bitcoin wallet from Qt view code.
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...
static const CCheckpointData data