QIviFilterTerm Class

The QIviFilterTerm is the representation of a filter. More...

Header: #include <QIviFilterTerm>
qmake: QT += ivicore
Inherits: QIviAbstractQueryTerm

Public Types

enum Operator { Equals, EqualsCaseInsensitive, Unequals, GreaterThan, GreaterEquals, …, LowerEquals }

Public Functions

bool isNegated() const
QIviFilterTerm::Operator operatorType() const
QString propertyName() const
QVariant value() const

Reimplemented Public Functions

virtual QString toString() const override
virtual QIviAbstractQueryTerm::Type type() const override

Detailed Description

The filter is either in the form:

 identifier operator value

or:

 value operator identifier

Member Type Documentation

enum QIviFilterTerm::Operator

ConstantValueDescription
QIviFilterTerm::Equals0Tests whether the value from the identifier is the equal to the passed value. In case of a string the comparison is case-senstitive.
QIviFilterTerm::EqualsCaseInsensitive1Tests whether the value from the identifier is the equal to the passed value, but the comparison is done case-insensitive.
QIviFilterTerm::Unequals2Tests whether the value from the identifier is the unequal to the passed value. In case of a string the comparison is case-senstitive.
QIviFilterTerm::GreaterThan3Tests whether the value from the identifier is greater than the passed value. This does only work for numbers.
QIviFilterTerm::GreaterEquals4Tests whether the value from the identifier is greater than or equal to the passed value. This does only work for numbers.
QIviFilterTerm::LowerThan5Tests whether the value from the identifier is lower than the passed value. This does only work for numbers.
QIviFilterTerm::LowerEquals6Tests whether the value from the identifier is lower than or equal to the passed value. This does only work for numbers.

Member Function Documentation

bool QIviFilterTerm::isNegated() const

Returns true when this term is negated, otherwise false

QIviFilterTerm::Operator QIviFilterTerm::operatorType() const

Returns the operator of this filter.

QString QIviFilterTerm::propertyName() const

Returns the property this filter should act on.

[override virtual] QString QIviFilterTerm::toString() const

Reimplements: QIviAbstractQueryTerm::toString() const.

[override virtual] QIviAbstractQueryTerm::Type QIviFilterTerm::type() const

Reimplements: QIviAbstractQueryTerm::type() const.

QVariant QIviFilterTerm::value() const

Returns the value of the filter.