Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | List of all members
TransactionFilterProxy Class Reference

Filter the transaction list according to pre-specified rules. More...

#include <transactionfilterproxy.h>

Inheritance diagram for TransactionFilterProxy:
[legend]
Collaboration diagram for TransactionFilterProxy:
[legend]

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 Amount minimum)
 
void setWatchOnlyFilter (WatchOnlyFilter filter)
 
void setLimit (int limit)
 Set maximum number of rows returned, -1 if unlimited.
 
void setShowInactive (bool showInactive)
 Set whether to show conflicted transactions.
 
int rowCount (const QModelIndex &parent=QModelIndex()) const override
 

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).
 
static const QDateTime MAX_DATE
 Last date that can be represented (far in the future).
 
static const quint32 ALL_TYPES = 0xFFFFFFFF
 Type filter bit field (all types).
 

Protected Member Functions

bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const override
 

Private Attributes

QDateTime dateFrom
 
QDateTime dateTo
 
QString m_search_string
 
quint32 typeFilter
 
WatchOnlyFilter watchOnlyFilter
 
Amount minAmount
 
int limitRows
 
bool showInactive
 

Detailed Description

Filter the transaction list according to pre-specified rules.

Definition at line 16 of file transactionfilterproxy.h.

Member Enumeration Documentation

◆ WatchOnlyFilter

Enumerator
WatchOnlyFilter_All 
WatchOnlyFilter_Yes 
WatchOnlyFilter_No 

Definition at line 37 of file transactionfilterproxy.h.

Constructor & Destructor Documentation

◆ TransactionFilterProxy()

TransactionFilterProxy::TransactionFilterProxy ( QObject *  parent = nullptr)
explicit

Definition at line 18 of file transactionfilterproxy.cpp.

Member Function Documentation

◆ filterAcceptsRow()

bool TransactionFilterProxy::filterAcceptsRow ( int  source_row,
const QModelIndex source_parent 
) const
overrideprotected

Definition at line 24 of file transactionfilterproxy.cpp.

Here is the call graph for this function:

◆ rowCount()

int TransactionFilterProxy::rowCount ( const QModelIndex parent = QModelIndex()) const
override

Definition at line 112 of file transactionfilterproxy.cpp.

◆ setDateRange()

void TransactionFilterProxy::setDateRange ( const QDateTime from,
const QDateTime to 
)

Definition at line 73 of file transactionfilterproxy.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setLimit()

void TransactionFilterProxy::setLimit ( int  limit)

Set maximum number of rows returned, -1 if unlimited.

Definition at line 103 of file transactionfilterproxy.cpp.

Here is the call graph for this function:

◆ setMinAmount()

void TransactionFilterProxy::setMinAmount ( const Amount  minimum)

Definition at line 93 of file transactionfilterproxy.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSearchString()

void TransactionFilterProxy::setSearchString ( const QString search_string)

Definition at line 80 of file transactionfilterproxy.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setShowInactive()

void TransactionFilterProxy::setShowInactive ( bool  showInactive)

Set whether to show conflicted transactions.

Definition at line 107 of file transactionfilterproxy.cpp.

Here is the call graph for this function:

◆ setTypeFilter()

void TransactionFilterProxy::setTypeFilter ( quint32  modes)
Note
Type filter takes a bit field created with TYPE() or ALL_TYPES

Definition at line 88 of file transactionfilterproxy.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setWatchOnlyFilter()

void TransactionFilterProxy::setWatchOnlyFilter ( WatchOnlyFilter  filter)

Definition at line 98 of file transactionfilterproxy.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TYPE()

static quint32 TransactionFilterProxy::TYPE ( int  type)
inlinestatic

Definition at line 35 of file transactionfilterproxy.h.

Here is the caller graph for this function:

Member Data Documentation

◆ ALL_TYPES

const quint32 TransactionFilterProxy::ALL_TYPES = 0xFFFFFFFF
static

Type filter bit field (all types).

Definition at line 33 of file transactionfilterproxy.h.

◆ dateFrom

QDateTime TransactionFilterProxy::dateFrom
private

Definition at line 69 of file transactionfilterproxy.h.

◆ dateTo

QDateTime TransactionFilterProxy::dateTo
private

Definition at line 70 of file transactionfilterproxy.h.

◆ limitRows

int TransactionFilterProxy::limitRows
private

Definition at line 75 of file transactionfilterproxy.h.

◆ m_search_string

QString TransactionFilterProxy::m_search_string
private

Definition at line 71 of file transactionfilterproxy.h.

◆ MAX_DATE

const QDateTime TransactionFilterProxy::MAX_DATE
static
Initial value:
=
QDateTime::fromTime_t(0xFFFFFFFF)

Last date that can be represented (far in the future).

Definition at line 29 of file transactionfilterproxy.h.

◆ MIN_DATE

const QDateTime TransactionFilterProxy::MIN_DATE = QDateTime::fromTime_t(0)
static

Earliest date that can be represented (far in the past).

Definition at line 25 of file transactionfilterproxy.h.

◆ minAmount

Amount TransactionFilterProxy::minAmount
private

Definition at line 74 of file transactionfilterproxy.h.

◆ showInactive

bool TransactionFilterProxy::showInactive
private

Definition at line 76 of file transactionfilterproxy.h.

◆ typeFilter

quint32 TransactionFilterProxy::typeFilter
private

Definition at line 72 of file transactionfilterproxy.h.

◆ watchOnlyFilter

WatchOnlyFilter TransactionFilterProxy::watchOnlyFilter
private

Definition at line 73 of file transactionfilterproxy.h.


The documentation for this class was generated from the following files: