QOrganizerItemUnionFilter Class

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

Header: #include <QOrganizerItemUnionFilter>
Inherits: QOrganizerItemFilter

Public Functions

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

Detailed Description

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

It may be used to select organizer items which match any of the filters in the union.

Member Function Documentation

QOrganizerItemUnionFilter::QOrganizerItemUnionFilter()

Constructs a new intersection filter.

QOrganizerItemUnionFilter::QOrganizerItemUnionFilter(const QOrganizerItemFilter &other)

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

void QOrganizerItemUnionFilter::append(const QOrganizerItemFilter &filter)

Appends the given filter to the list of unioned filters.

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

void QOrganizerItemUnionFilter::clear()

Clears the list of filters. Note that an empty union filter will match no items.

See also filters() and remove().

QList<QOrganizerItemFilter> QOrganizerItemUnionFilter::filters() const

Returns the list of filters which form the union filter.

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

void QOrganizerItemUnionFilter::prepend(const QOrganizerItemFilter &filter)

Prepends the given filter to the list of unioned filters.

See also append() and filters().

void QOrganizerItemUnionFilter::remove(const QOrganizerItemFilter &filter)

Removes the given filter from the union list.

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

void QOrganizerItemUnionFilter::setFilters(const QList<QOrganizerItemFilter> &filters)

Sets the filters whose criteria will be unioned to filters.

See also filters().

QOrganizerItemUnionFilter &QOrganizerItemUnionFilter::operator<<(const QOrganizerItemFilter &filter)

Appends the given filter to the list of unioned filters.

See also append().