Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | List of all members
TokenFilterProxy Class Reference

#include <tokenfilterproxy.h>

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

Public Member Functions

 TokenFilterProxy (QObject *parent=0)
 
void setDateRange (const QDateTime &from, const QDateTime &to)
 
void setAddressPrefix (const QString &addrPrefix)
 
void setTypeFilter (quint32 modes)
 
void setMinAmount (const int256_t &minimum)
 
void setName (const QString _name)
 
void setLimit (int limit)
 Set maximum number of rows returned, -1 if unlimited. 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...
 

Protected Member Functions

bool filterAcceptsRow (int source_row, const QModelIndex &source_parent) const
 
bool lessThan (const QModelIndex &left, const QModelIndex &right) const
 

Private Attributes

QDateTime dateFrom
 
QDateTime dateTo
 
QString addrPrefix
 
QString name
 
quint32 typeFilter
 
int256_t minAmount
 
int limitRows
 
bool showInactive
 

Detailed Description

Definition at line 12 of file tokenfilterproxy.h.

Constructor & Destructor Documentation

TokenFilterProxy::TokenFilterProxy ( QObject *  parent = 0)
explicit

Definition at line 17 of file tokenfilterproxy.cpp.

Member Function Documentation

bool TokenFilterProxy::filterAcceptsRow ( int  source_row,
const QModelIndex &  source_parent 
) const
protected

Definition at line 78 of file tokenfilterproxy.cpp.

Here is the call graph for this function:

bool TokenFilterProxy::lessThan ( const QModelIndex &  left,
const QModelIndex &  right 
) const
protected

Definition at line 103 of file tokenfilterproxy.cpp.

Here is the call graph for this function:

int TokenFilterProxy::rowCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 66 of file tokenfilterproxy.cpp.

void TokenFilterProxy::setAddressPrefix ( const QString &  addrPrefix)

Definition at line 37 of file tokenfilterproxy.cpp.

Here is the caller graph for this function:

void TokenFilterProxy::setDateRange ( const QDateTime &  from,
const QDateTime &  to 
)

Definition at line 30 of file tokenfilterproxy.cpp.

Here is the caller graph for this function:

void TokenFilterProxy::setLimit ( int  limit)

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

Definition at line 61 of file tokenfilterproxy.cpp.

void TokenFilterProxy::setMinAmount ( const int256_t &  minimum)

Definition at line 49 of file tokenfilterproxy.cpp.

Here is the caller graph for this function:

void TokenFilterProxy::setName ( const QString  _name)

Definition at line 55 of file tokenfilterproxy.cpp.

Here is the caller graph for this function:

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

Definition at line 43 of file tokenfilterproxy.cpp.

Here is the caller graph for this function:

static quint32 TokenFilterProxy::TYPE ( int  type)
inlinestatic

Definition at line 26 of file tokenfilterproxy.h.

Here is the caller graph for this function:

Member Data Documentation

QString TokenFilterProxy::addrPrefix
private

Definition at line 49 of file tokenfilterproxy.h.

const quint32 TokenFilterProxy::ALL_TYPES = 0xFFFFFFFF
static

Type filter bit field (all types)

Definition at line 24 of file tokenfilterproxy.h.

QDateTime TokenFilterProxy::dateFrom
private

Definition at line 47 of file tokenfilterproxy.h.

QDateTime TokenFilterProxy::dateTo
private

Definition at line 48 of file tokenfilterproxy.h.

int TokenFilterProxy::limitRows
private

Definition at line 53 of file tokenfilterproxy.h.

const QDateTime TokenFilterProxy::MAX_DATE = QDateTime::fromTime_t(0xFFFFFFFF)
static

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

Definition at line 22 of file tokenfilterproxy.h.

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

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

Definition at line 20 of file tokenfilterproxy.h.

int256_t TokenFilterProxy::minAmount
private

Definition at line 52 of file tokenfilterproxy.h.

QString TokenFilterProxy::name
private

Definition at line 50 of file tokenfilterproxy.h.

bool TokenFilterProxy::showInactive
private

Definition at line 54 of file tokenfilterproxy.h.

quint32 TokenFilterProxy::typeFilter
private

Definition at line 51 of file tokenfilterproxy.h.


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