QContactUnionFilter Class

The QContactUnionFilter class provides a filter which unions the results of other filters. More...

Header: #include <QContactUnionFilter>
Inherits: QContactFilter

Public Functions

QContactUnionFilter()
QContactUnionFilter(const QContactFilter &other)
void append(const QContactFilter &filter)
void clear()
QList<QContactFilter> filters() const
void prepend(const QContactFilter &filter)
void remove(const QContactFilter &filter)
void setFilters(const QList<QContactFilter> &filters)
QContactUnionFilter &operator<<(const QContactFilter &filter)

Detailed Description

The QContactUnionFilter class provides a filter which unions the results of other filters.

It may be used to select contacts which match all of the filters in the union

Member Function Documentation

QContactUnionFilter::QContactUnionFilter()

Constructs a new intersection filter

QContactUnionFilter::QContactUnionFilter(const QContactFilter &other)

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

void QContactUnionFilter::append(const QContactFilter &filter)

Appends the given filter to the list of unioned filters

See also operator<<(), prepend(), and filters().

void QContactUnionFilter::clear()

Clears the list of filters. A cleared union filter will match no contacts.

See also filters() and remove().

QList<QContactFilter> QContactUnionFilter::filters() const

Returns the list of filters which form the union filter

See also setFilters(), prepend(), append(), and remove().

void QContactUnionFilter::prepend(const QContactFilter &filter)

Prepends the given filter to the list of unioned filters

See also append() and filters().

void QContactUnionFilter::remove(const QContactFilter &filter)

Removes the given filter from the union list

See also filters(), append(), prepend(), and clear().

void QContactUnionFilter::setFilters(const QList<QContactFilter> &filters)

Sets the filters whose criteria will be unioned to filters

See also filters().

QContactUnionFilter &QContactUnionFilter::operator<<(const QContactFilter &filter)

Appends the given filter to the list of unioned filters

See also append().