Bitcoin
|
#include <transactionfilterproxy.h>
Public Types | |
enum | WatchOnlyFilter { WatchOnlyFilter_All, WatchOnlyFilter_Yes, WatchOnlyFilter_No } |
Public Member Functions | |
TransactionFilterProxy (QObject *parent=nullptr) | |
void | setDateRange (const QDateTime &from, const QDateTime &to) |
void | setSearchString (const QString &) |
void | setTypeFilter (quint32 modes) |
void | setMinAmount (const CAmount &minimum) |
void | setWatchOnlyFilter (WatchOnlyFilter filter) |
void | setLimit (int limit) |
void | setShowInactive (bool showInactive) |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
Static Public Member Functions | |
static quint32 | TYPE (int type) |
Static Public Attributes | |
static const QDateTime | MIN_DATE = QDateTime::fromTime_t(0) |
static const QDateTime | MAX_DATE = QDateTime::fromTime_t(0xFFFFFFFF) |
static const quint32 | ALL_TYPES = 0xFFFFFFFF |
Protected Member Functions | |
bool | filterAcceptsRow (int source_row, const QModelIndex &source_parent) const |
Private Attributes | |
QDateTime | dateFrom |
QDateTime | dateTo |
QString | m_search_string |
quint32 | typeFilter |
WatchOnlyFilter | watchOnlyFilter |
CAmount | minAmount |
int | limitRows |
bool | showInactive |
Filter the transaction list according to pre-specified rules.
|
explicit |
|
protected |
int TransactionFilterProxy::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
void TransactionFilterProxy::setDateRange | ( | const QDateTime & | from, |
const QDateTime & | to | ||
) |
void TransactionFilterProxy::setLimit | ( | int | limit | ) |
Set maximum number of rows returned, -1 if unlimited.
void TransactionFilterProxy::setMinAmount | ( | const CAmount & | minimum | ) |
void TransactionFilterProxy::setSearchString | ( | const QString & | search_string | ) |
void TransactionFilterProxy::setShowInactive | ( | bool | showInactive | ) |
Set whether to show conflicted transactions.
void TransactionFilterProxy::setTypeFilter | ( | quint32 | modes | ) |
void TransactionFilterProxy::setWatchOnlyFilter | ( | WatchOnlyFilter | filter | ) |
|
inlinestatic |
|
static |
Type filter bit field (all types)
|
private |
|
private |
|
private |
|
private |
|
static |
Last date that can be represented (far in the future)
|
static |
Earliest date that can be represented (far in the past)
|
private |
|
private |
|
private |
|
private |