6 #ifndef RAVEN_QT_RECENTREQUESTSTABLEMODEL_H 7 #define RAVEN_QT_RECENTREQUESTSTABLEMODEL_H 11 #include <QAbstractTableModel> 12 #include <QStringList> 30 template <
typename Stream,
typename Operation>
32 unsigned int nDate = date.toTime_t();
39 if (ser_action.ForRead())
40 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);
94 void updateDisplayUnit();
99 QList<RecentRequestEntry>
list;
103 void updateAmountColumnTitle();
105 QString getAmountTitle();
108 #endif // RAVEN_QT_RECENTREQUESTSTABLEMODEL_H Model for list of recently generated payment requests / raven: URIs.
int64_t nReceiveRequestsMaxId
void SerializationOp(Stream &s, Operation ser_action)
RecentRequestEntryLessThan(int nColumn, Qt::SortOrder fOrder)
QList< RecentRequestEntry > list
static const int CURRENT_VERSION
SendCoinsRecipient recipient
const RecentRequestEntry & entry(int row) const
WalletModel * walletModel
Interface to Raven wallet from Qt view code.
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...