5 #ifndef FABCOIN_QT_RECENTREQUESTSTABLEMODEL_H 6 #define FABCOIN_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);
47 column(nColumn), order(fOrder) {}
76 int rowCount(
const QModelIndex &parent)
const;
77 int columnCount(
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;
88 void addNewRequest(
const std::string &recipient);
92 void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder);
93 void updateDisplayUnit();
98 QList<RecentRequestEntry>
list;
102 void updateAmountColumnTitle();
104 QString getAmountTitle();
107 #endif // FABCOIN_QT_RECENTREQUESTSTABLEMODEL_H Model for list of recently generated payment requests / fabcoin: URIs.
int64_t nReceiveRequestsMaxId
void SerializationOp(Stream &s, Operation ser_action)
RecentRequestEntryLessThan(int nColumn, Qt::SortOrder fOrder)
const RecentRequestEntry & entry(int row) const
QList< RecentRequestEntry > list
static const int CURRENT_VERSION
SendCoinsRecipient recipient
WalletModel * walletModel
Interface to Fabcoin wallet from Qt view code.
A CWallet is an extension of a keystore, which also maintains a set of transactions and balances...