5 #ifndef BITCOIN_QT_RECENTREQUESTSTABLEMODEL_H     6 #define BITCOIN_QT_RECENTREQUESTSTABLEMODEL_H    10 #include <QAbstractTableModel>    11 #include <QStringList>    27     template <
typename Stream, 
typename Operation>
    29         unsigned int nDate = 
date.toTime_t();
    36         if (ser_action.ForRead())
    37             date = QDateTime::fromTime_t(nDate);
    74     int rowCount(
const QModelIndex &parent) 
const;
    76     QVariant 
data(
const QModelIndex &
index, 
int role) 
const;
    77     bool setData(
const QModelIndex &
index, 
const QVariant &value, 
int role);
    78     QVariant 
headerData(
int section, Qt::Orientation orientation, 
int role) 
const;
    79     QModelIndex 
index(
int row, 
int column, 
const QModelIndex &parent) 
const;
    80     bool removeRows(
int row, 
int count, 
const QModelIndex &parent = QModelIndex());
    81     Qt::ItemFlags 
flags(
const QModelIndex &
index) 
const;
    90     void sort(
int column, Qt::SortOrder order = Qt::AscendingOrder);
    96     QList<RecentRequestEntry> 
list;
   105 #endif // BITCOIN_QT_RECENTREQUESTSTABLEMODEL_H bool setData(const QModelIndex &index, const QVariant &value, int role)
 
Model for list of recently generated payment requests / bitcoin: URIs. 
 
void addNewRequest(const SendCoinsRecipient &recipient)
 
void sort(int column, Qt::SortOrder order=Qt::AscendingOrder)
 
int64_t nReceiveRequestsMaxId
 
~RecentRequestsTableModel()
 
bool removeRows(int row, int count, const QModelIndex &parent=QModelIndex())
 
void SerializationOp(Stream &s, Operation ser_action)
 
RecentRequestEntryLessThan(int nColumn, Qt::SortOrder fOrder)
 
QList< RecentRequestEntry > list
 
QVariant headerData(int section, Qt::Orientation orientation, int role) const
 
static const int CURRENT_VERSION
 
int rowCount(const QModelIndex &parent) const
 
QModelIndex index(int row, int column, const QModelIndex &parent) const
 
SendCoinsRecipient recipient
 
const RecentRequestEntry & entry(int row) const
 
bool operator()(RecentRequestEntry &left, RecentRequestEntry &right) const
 
QVariant data(const QModelIndex &index, int role) const
 
WalletModel * walletModel
 
Interface to Bitcoin wallet from Qt view code. 
 
void updateAmountColumnTitle()
Updates the column title to "Amount (DisplayUnit)" and emits headerDataChanged() signal for table hea...
 
int columnCount(const QModelIndex &parent) const
 
RecentRequestsTableModel(WalletModel *parent)
 
QString getAmountTitle()
Gets title for amount column including current display unit if optionsModel reference available...
 
Qt::ItemFlags flags(const QModelIndex &index) const