QOrganizerItemDetailFieldFilter Class

The QOrganizerItemDetailFieldFilter class provides a filter based around a detail value criterion. More...

Header: #include <QOrganizerItemDetailFieldFilter>
Inherits: QOrganizerItemFilter

Public Functions

QOrganizerItemDetailFieldFilter()
QOrganizerItemDetailFieldFilter(const QOrganizerItemFilter & other)
int detailField() const
QOrganizerItemDetail::DetailType detailType() const
QOrganizerItemFilter::MatchFlags matchFlags() const
void setDetail(QOrganizerItemDetail::DetailType detailType, int field = -1)
void setMatchFlags(QOrganizerItemFilter::MatchFlags flags)
void setValue(const QVariant & value)
QVariant value() const

Detailed Description

The QOrganizerItemDetailFieldFilter class provides a filter based around a detail value criterion.

It may be used to select organizeritems which contain a detail of a particular type and a particular value.

Member Function Documentation

QOrganizerItemDetailFieldFilter::QOrganizerItemDetailFieldFilter()

Constructs a new detail filter.

QOrganizerItemDetailFieldFilter::QOrganizerItemDetailFieldFilter(const QOrganizerItemFilter & other)

Constructs a copy of other if possible, otherwise constructs a new detail filter.

int QOrganizerItemDetailFieldFilter::detailField() const

Returns the detail field containing the value which will be matched against the value criterion.

See also setDetail().

QOrganizerItemDetail::DetailType QOrganizerItemDetailFieldFilter::detailType() const

Returns the type of the detail which will be inspected for matching values.

See also setDetail().

QOrganizerItemFilter::MatchFlags QOrganizerItemDetailFieldFilter::matchFlags() const

Returns the semantics of the value matching criterion.

See also setMatchFlags().

void QOrganizerItemDetailFieldFilter::setDetail(QOrganizerItemDetail::DetailType detailType, int field = -1)

Sets the type of detail which will be matched to detailType, and the field of the detail which will contain the value criterion to field.

If detailType is QOrganizerItemDetail::TypeUndefined, the detail filter will match no organizer items. If field is not specified, or equal to -1, the detail filter acts like a "detail exists" filter; if any detail of the specified type is present in the organizer item, that organizer item will match the filter, regardless of what values might be stored in that detail.

See also detailType() and detailField().

void QOrganizerItemDetailFieldFilter::setMatchFlags(QOrganizerItemFilter::MatchFlags flags)

Sets the semantics of the value matching criterion to those defined in flags.

See also matchFlags().

void QOrganizerItemDetailFieldFilter::setValue(const QVariant & value)

Sets the value criterion of the filter to value.

See also value().

QVariant QOrganizerItemDetailFieldFilter::value() const

Returns the value criterion of the detail filter.

See also setValue().