Changeset View
Changeset View
Standalone View
Standalone View
src/qt/transactionfilterproxy.h
Show All 32 Lines | public: | ||||
}; | }; | ||||
void setDateRange(const QDateTime &from, const QDateTime &to); | void setDateRange(const QDateTime &from, const QDateTime &to); | ||||
void setAddressPrefix(const QString &addrPrefix); | void setAddressPrefix(const QString &addrPrefix); | ||||
/** | /** | ||||
@note Type filter takes a bit field created with TYPE() or ALL_TYPES | @note Type filter takes a bit field created with TYPE() or ALL_TYPES | ||||
*/ | */ | ||||
void setTypeFilter(quint32 modes); | void setTypeFilter(quint32 modes); | ||||
void setMinAmount(const CAmount &minimum); | void setMinAmount(const Amount minimum); | ||||
void setWatchOnlyFilter(WatchOnlyFilter filter); | void setWatchOnlyFilter(WatchOnlyFilter filter); | ||||
/** Set maximum number of rows returned, -1 if unlimited. */ | /** Set maximum number of rows returned, -1 if unlimited. */ | ||||
void setLimit(int limit); | void setLimit(int limit); | ||||
/** Set whether to show conflicted transactions. */ | /** Set whether to show conflicted transactions. */ | ||||
void setShowInactive(bool showInactive); | void setShowInactive(bool showInactive); | ||||
int rowCount(const QModelIndex &parent = QModelIndex()) const override; | int rowCount(const QModelIndex &parent = QModelIndex()) const override; | ||||
protected: | protected: | ||||
bool filterAcceptsRow(int source_row, | bool filterAcceptsRow(int source_row, | ||||
const QModelIndex &source_parent) const override; | const QModelIndex &source_parent) const override; | ||||
private: | private: | ||||
QDateTime dateFrom; | QDateTime dateFrom; | ||||
QDateTime dateTo; | QDateTime dateTo; | ||||
QString addrPrefix; | QString addrPrefix; | ||||
quint32 typeFilter; | quint32 typeFilter; | ||||
WatchOnlyFilter watchOnlyFilter; | WatchOnlyFilter watchOnlyFilter; | ||||
CAmount minAmount; | Amount minAmount; | ||||
int limitRows; | int limitRows; | ||||
bool showInactive; | bool showInactive; | ||||
}; | }; | ||||
#endif // BITCOIN_QT_TRANSACTIONFILTERPROXY_H | #endif // BITCOIN_QT_TRANSACTIONFILTERPROXY_H |