6 #ifndef RECENTREQUESTSTABLEMODEL_H
7 #define RECENTREQUESTSTABLEMODEL_H
11 #include <QAbstractTableModel>
12 #include <QStringList>
32 unsigned int nDate = date.toTime_t();
35 nVersion = pthis->nVersion;
41 pthis->date = QDateTime::fromTime_t(nDate);
49 column(nColumn), order(fOrder) {}
78 int rowCount(
const QModelIndex &parent)
const;
79 int columnCount(
const QModelIndex &parent)
const;
80 QVariant data(
const QModelIndex &index,
int role)
const;
81 bool setData(
const QModelIndex &index,
const QVariant &value,
int role);
82 QVariant headerData(
int section, Qt::Orientation orientation,
int role)
const;
83 QModelIndex index(
int row,
int column,
const QModelIndex &parent)
const;
84 bool removeRows(
int row,
int count,
const QModelIndex &parent = QModelIndex());
85 Qt::ItemFlags flags(
const QModelIndex &index)
const;
90 void addNewRequest(
const std::string &recipient);
94 void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder);
95 void updateDisplayUnit();
100 QList<RecentRequestEntry>
list;
104 void updateAmountColumnTitle();
106 QString getAmountTitle();
Model for list of recently generated payment requests / anoncoin: 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 Anoncoin wallet from Qt view code.
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...