QOrganizerItemFilter ClassThe QOrganizerItemFilter class is used to filter items made available through a backend. More... #include <QOrganizerItemFilter> Inherited by: QOrganizerItemCollectionFilter, QOrganizerItemDetailFilter, QOrganizerItemDetailRangeFilter, QOrganizerItemIdFilter, QOrganizerItemIntersectionFilter, QOrganizerItemInvalidFilter, and QOrganizerItemUnionFilter. Public Types
Public Functions
Related Non-Members
Detailed DescriptionThe QOrganizerItemFilter class is used to filter items made available through a backend. This class is used as a parameter to various functions offered by QOrganizerManager and QOrganizerAbstractRequest, to allow filtering of items which have certain details or properties. Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QOrganizerItemFilter::InvalidFilter | 0 | An invalid filter which matches nothing. |
QOrganizerItemFilter::DetailFilter | 1 | A filter which matches items containing a detail of a particular type and value. |
QOrganizerItemFilter::DetailRangeFilter | 2 | A filter which matches items containing a detail of a particular type, whose values are within a particular range. |
QOrganizerItemFilter::IntersectionFilter | 3 | A filter which matches all items that are matched by all filters it includes. |
QOrganizerItemFilter::UnionFilter | 4 | A filter which matches any organizer item that is matched by any of the filters it includes. |
QOrganizerItemFilter::IdFilter | 5 | A filter which matches any organizer item whose ID is contained in a particular list of organizer item IDs. |
QOrganizerItemFilter::CollectionFilter | 6 | A filter which matches any items whose collection ID is contained in a particular list of collection IDs. |
QOrganizerItemFilter::DefaultFilter | 7 | A filter which matches everything. |
This enumeration describes the semantics of matching followed by the filter.
Constant | Value | Description |
---|---|---|
QOrganizerItemFilter::MatchExactly | Qt::MatchExactly | Performs QVariant-based matching. |
QOrganizerItemFilter::MatchContains | Qt::MatchContains | The search term is contained in the item. |
QOrganizerItemFilter::MatchStartsWith | Qt::MatchStartsWith | The search term matches the start of the item. |
QOrganizerItemFilter::MatchEndsWith | Qt::MatchEndsWith | The search term matches the end of the item. |
QOrganizerItemFilter::MatchFixedString | Qt::MatchFixedString | Performs string-based matching. String-based comparisons are case-insensitive unless the MatchCaseSensitive flag is also specified. |
QOrganizerItemFilter::MatchCaseSensitive | Qt::MatchCaseSensitive | The search is case sensitive. |
The MatchFlags type is a typedef for QFlags<MatchFlag>. It stores an OR combination of MatchFlag values.
Constructs an empty filter of type DefaultFilter.
Constructs a new copy of other.
Cleans up the memory used by this filter.
Returns the type of the filter.
Returns true if this filter is not identical to the other filter.
See also operator==().
Assigns this filter to be other.
Returns true if this filter is identical to the other filter.
See also operator!=().
Returns a filter which is the intersection of the left and right filters.
See also QOrganizerItemIntersectionFilter.
Returns a filter which is the union of the left and right filters.
See also QOrganizerItemUnionFilter.