Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Filter the transaction list according to pre-specified rules. More...
#include <transactionfilterproxy.h>
Public Types | |
enum | WatchOnlyFilter { WatchOnlyFilter_All, WatchOnlyFilter_Yes, WatchOnlyFilter_No } |
Public Member Functions | |
TransactionFilterProxy (QObject *parent=0) | |
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) |
Set maximum number of rows returned, -1 if unlimited. More... | |
void | setShowInactive (bool showInactive) |
Set whether to show conflicted transactions. More... | |
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) |
Earliest date that can be represented (far in the past) More... | |
static const QDateTime | MAX_DATE = QDateTime::fromTime_t(0xFFFFFFFF) |
Last date that can be represented (far in the future) More... | |
static const quint32 | ALL_TYPES = 0xFFFFFFFF |
Type filter bit field (all types) More... | |
static const quint32 | COMMON_TYPES = 4223 |
Type filter bit field (all types but Darksend-SPAM) More... | |
Protected Member Functions | |
bool | filterAcceptsRow (int source_row, const QModelIndex &source_parent) const |
Private Attributes | |
qint64 | dateFrom |
qint64 | dateTo |
QString | m_search_string |
quint32 | typeFilter |
WatchOnlyFilter | watchOnlyFilter |
CAmount | minAmount |
int | limitRows |
bool | showInactive |
Detailed Description
Filter the transaction list according to pre-specified rules.
Definition at line 14 of file transactionfilterproxy.h.
Member Enumeration Documentation
◆ WatchOnlyFilter
Enumerator | |
---|---|
WatchOnlyFilter_All | |
WatchOnlyFilter_Yes | |
WatchOnlyFilter_No |
Definition at line 32 of file transactionfilterproxy.h.
Constructor & Destructor Documentation
◆ TransactionFilterProxy()
|
explicit |
Definition at line 17 of file transactionfilterproxy.cpp.
Member Function Documentation
◆ filterAcceptsRow()
|
protected |
Definition at line 30 of file transactionfilterproxy.cpp.
References TransactionTableModel::AddressRole, TransactionTableModel::AmountRole, TransactionStatus::Conflicted, TransactionTableModel::DateRoleInt, dateTo, TransactionTableModel::LabelRole, m_search_string, minAmount, showInactive, TransactionTableModel::StatusRole, TransactionTableModel::TxIDRole, TYPE(), typeFilter, TransactionTableModel::TypeRole, watchOnlyFilter, WatchOnlyFilter_No, WatchOnlyFilter_Yes, and TransactionTableModel::WatchonlyRole.
◆ rowCount()
int TransactionFilterProxy::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Definition at line 109 of file transactionfilterproxy.cpp.
References limitRows.
◆ setDateRange()
void TransactionFilterProxy::setDateRange | ( | const QDateTime & | from, |
const QDateTime & | to | ||
) |
Definition at line 64 of file transactionfilterproxy.cpp.
References dateFrom, and dateTo.
Referenced by TransactionView::chooseDate(), and TransactionView::dateRangeChanged().
◆ setLimit()
void TransactionFilterProxy::setLimit | ( | int | limit | ) |
Set maximum number of rows returned, -1 if unlimited.
Definition at line 96 of file transactionfilterproxy.cpp.
References limitRows.
◆ setMinAmount()
void TransactionFilterProxy::setMinAmount | ( | const CAmount & | minimum | ) |
Definition at line 84 of file transactionfilterproxy.cpp.
References minAmount.
Referenced by TransactionView::changedAmount().
◆ setSearchString()
void TransactionFilterProxy::setSearchString | ( | const QString & | search_string | ) |
Definition at line 71 of file transactionfilterproxy.cpp.
References m_search_string.
Referenced by TransactionView::changedSearch().
◆ setShowInactive()
void TransactionFilterProxy::setShowInactive | ( | bool | showInactive | ) |
Set whether to show conflicted transactions.
Definition at line 103 of file transactionfilterproxy.cpp.
References showInactive.
◆ setTypeFilter()
void TransactionFilterProxy::setTypeFilter | ( | quint32 | modes | ) |
- Note
- Type filter takes a bit field created with TYPE() or ALL_TYPES
Definition at line 78 of file transactionfilterproxy.cpp.
References typeFilter.
Referenced by TransactionView::chooseType().
◆ setWatchOnlyFilter()
void TransactionFilterProxy::setWatchOnlyFilter | ( | WatchOnlyFilter | filter | ) |
Definition at line 90 of file transactionfilterproxy.cpp.
References watchOnlyFilter.
Referenced by TransactionView::chooseWatchonly().
◆ TYPE()
|
inlinestatic |
Definition at line 30 of file transactionfilterproxy.h.
Referenced by filterAcceptsRow(), and TransactionView::TransactionView().
Member Data Documentation
◆ ALL_TYPES
|
static |
Type filter bit field (all types)
Definition at line 26 of file transactionfilterproxy.h.
Referenced by TransactionView::TransactionView().
◆ COMMON_TYPES
|
static |
Type filter bit field (all types but Darksend-SPAM)
Definition at line 28 of file transactionfilterproxy.h.
Referenced by TransactionView::TransactionView().
◆ dateFrom
|
private |
Definition at line 60 of file transactionfilterproxy.h.
Referenced by setDateRange().
◆ dateTo
|
private |
Definition at line 61 of file transactionfilterproxy.h.
Referenced by filterAcceptsRow(), and setDateRange().
◆ limitRows
|
private |
Definition at line 66 of file transactionfilterproxy.h.
Referenced by rowCount(), and setLimit().
◆ m_search_string
|
private |
Definition at line 62 of file transactionfilterproxy.h.
Referenced by filterAcceptsRow(), and setSearchString().
◆ MAX_DATE
|
static |
Last date that can be represented (far in the future)
Definition at line 24 of file transactionfilterproxy.h.
Referenced by TransactionView::chooseDate().
◆ MIN_DATE
|
static |
Earliest date that can be represented (far in the past)
Definition at line 22 of file transactionfilterproxy.h.
Referenced by TransactionView::chooseDate().
◆ minAmount
|
private |
Definition at line 65 of file transactionfilterproxy.h.
Referenced by filterAcceptsRow(), and setMinAmount().
◆ showInactive
|
private |
Definition at line 67 of file transactionfilterproxy.h.
Referenced by filterAcceptsRow(), and setShowInactive().
◆ typeFilter
|
private |
Definition at line 63 of file transactionfilterproxy.h.
Referenced by filterAcceptsRow(), and setTypeFilter().
◆ watchOnlyFilter
|
private |
Definition at line 64 of file transactionfilterproxy.h.
Referenced by filterAcceptsRow(), and setWatchOnlyFilter().
The documentation for this class was generated from the following files:
- src/qt/transactionfilterproxy.h
- src/qt/transactionfilterproxy.cpp