Bitcoin Core 28.99.0
P2P Digital Currency
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 std::optional< QDateTime > &from, const std::optional< QDateTime > &to)
 Filter transactions between date range. More...
 
void setSearchString (const QString &)
 
void setTypeFilter (quint32 modes)
 
void setMinAmount (const CAmount &minimum)
 
void setWatchOnlyFilter (WatchOnlyFilter filter)
 
void setShowInactive (bool showInactive)
 Set whether to show conflicted transactions. More...
 

Static Public Member Functions

static quint32 TYPE (int type)
 

Static Public Attributes

static const quint32 ALL_TYPES = 0xFFFFFFFF
 Type filter bit field (all types) More...
 

Protected Member Functions

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

Private Attributes

std::optional< QDateTime > dateFrom
 
std::optional< QDateTime > dateTo
 
QString m_search_string
 
quint32 typeFilter
 
WatchOnlyFilter watchOnlyFilter {WatchOnlyFilter_All}
 
CAmount minAmount {0}
 
bool showInactive {true}
 

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 28 of file transactionfilterproxy.h.

Constructor & Destructor Documentation

◆ TransactionFilterProxy()

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

Definition at line 14 of file transactionfilterproxy.cpp.

Member Function Documentation

◆ filterAcceptsRow()

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

Definition at line 21 of file transactionfilterproxy.cpp.

Here is the call graph for this function:

◆ setDateRange()

void TransactionFilterProxy::setDateRange ( const std::optional< QDateTime > &  from,
const std::optional< QDateTime > &  to 
)

Filter transactions between date range.

Use std::nullopt for open range.

Definition at line 59 of file transactionfilterproxy.cpp.

Here is the caller graph for this function:

◆ setMinAmount()

void TransactionFilterProxy::setMinAmount ( const CAmount minimum)

Definition at line 79 of file transactionfilterproxy.cpp.

Here is the caller graph for this function:

◆ setSearchString()

void TransactionFilterProxy::setSearchString ( const QString &  search_string)

Definition at line 66 of file transactionfilterproxy.cpp.

Here is the caller graph for this function:

◆ setShowInactive()

void TransactionFilterProxy::setShowInactive ( bool  showInactive)

Set whether to show conflicted transactions.

Definition at line 91 of file transactionfilterproxy.cpp.

◆ setTypeFilter()

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

Definition at line 73 of file transactionfilterproxy.cpp.

Here is the caller graph for this function:

◆ setWatchOnlyFilter()

void TransactionFilterProxy::setWatchOnlyFilter ( WatchOnlyFilter  filter)

Definition at line 85 of file transactionfilterproxy.cpp.

Here is the caller graph for this function:

◆ TYPE()

static quint32 TransactionFilterProxy::TYPE ( int  type)
inlinestatic

Definition at line 26 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 24 of file transactionfilterproxy.h.

◆ dateFrom

std::optional<QDateTime> TransactionFilterProxy::dateFrom
private

Definition at line 52 of file transactionfilterproxy.h.

◆ dateTo

std::optional<QDateTime> TransactionFilterProxy::dateTo
private

Definition at line 53 of file transactionfilterproxy.h.

◆ m_search_string

QString TransactionFilterProxy::m_search_string
private

Definition at line 54 of file transactionfilterproxy.h.

◆ minAmount

CAmount TransactionFilterProxy::minAmount {0}
private

Definition at line 57 of file transactionfilterproxy.h.

◆ showInactive

bool TransactionFilterProxy::showInactive {true}
private

Definition at line 58 of file transactionfilterproxy.h.

◆ typeFilter

quint32 TransactionFilterProxy::typeFilter
private

Definition at line 55 of file transactionfilterproxy.h.

◆ watchOnlyFilter

WatchOnlyFilter TransactionFilterProxy::watchOnlyFilter {WatchOnlyFilter_All}
private

Definition at line 56 of file transactionfilterproxy.h.


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