Qt Mobility Reference Documentation

QOrganizerItemFilter Class Reference

The QOrganizerItemFilter class is used to select organizer items made available through a QOrganizerItemManager. More...

 #include <QOrganizerItemFilter>

Inherited by QOrganizerItemChangeLogFilter, QOrganizerItemCollectionFilter, QOrganizerItemDateTimePeriodFilter, QOrganizerItemDetailFilter, QOrganizerItemDetailRangeFilter, QOrganizerItemIntersectionFilter, QOrganizerItemInvalidFilter, QOrganizerItemLocalIdFilter, and QOrganizerItemUnionFilter.


Public Types

enum FilterType { InvalidFilter, OrganizerItemDetailFilter, OrganizerItemDetailRangeFilter, OrganizerItemDateTimePeriodFilter, ..., DefaultFilter }
enum MatchFlag { MatchExactly, MatchContains, MatchStartsWith, MatchEndsWith, MatchFixedString, MatchCaseSensitive }
flags MatchFlags

Public Functions

QOrganizerItemFilter ()
QOrganizerItemFilter ( const QOrganizerItemFilter & other )
~QOrganizerItemFilter ()
FilterType type () const
bool operator!= ( const QOrganizerItemFilter & other ) const
QOrganizerItemFilter & operator= ( const QOrganizerItemFilter & other )
bool operator== ( const QOrganizerItemFilter & other ) const

Related Non-Members

const QOrganizerItemFilter operator& ( const QOrganizerItemFilter & left, const QOrganizerItemFilter & right )
const QOrganizerItemFilter operator| ( const QOrganizerItemFilter & left, const QOrganizerItemFilter & right )

Detailed Description

The QOrganizerItemFilter class is used to select organizer items made available through a QOrganizerItemManager.

This class is used as a parameter to various functions offered by QOrganizerItemManager, to allow selection of items which have certain details or properties.


Member Type Documentation

enum QOrganizerItemFilter::FilterType

Describes the type of the filter

ConstantValueDescription
QOrganizerItemFilter::InvalidFilter0An invalid filter which matches nothing
QOrganizerItemFilter::OrganizerItemDetailFilter1A filter which matches items containing one or more details of a particular definition with a particular value
QOrganizerItemFilter::OrganizerItemDetailRangeFilter2A filter which matches items containing one or more details of a particular definition whose values are within a particular range
QOrganizerItemFilter::OrganizerItemDateTimePeriodFilter3A filter which matches items which occur in a given date/time period
QOrganizerItemFilter::ChangeLogFilter4A filter which matches items whose timestamps have been updated since some particular date and time A filter which matches items for which a particular action is available, or which contain a detail with a particular value for which a particular action is available
QOrganizerItemFilter::IntersectionFilter6A filter which matches all items that are matched by all filters it includes
QOrganizerItemFilter::UnionFilter7A filter which matches any organizer item that is matched by any of the filters it includes
QOrganizerItemFilter::LocalIdFilter8A filter which matches any organizer item whose local id is contained in a particular list of organizer item local ids
QOrganizerItemFilter::DefaultFilter10A filter which matches everything

enum QOrganizerItemFilter::MatchFlag
flags QOrganizerItemFilter::MatchFlags

Describes the semantics of matching followed by the filter

ConstantValueDescription
QOrganizerItemFilter::MatchExactlyQt::MatchExactlyPerforms QVariant-based matching
QOrganizerItemFilter::MatchContainsQt::MatchContainsThe search term is contained in the item
QOrganizerItemFilter::MatchStartsWithQt::MatchStartsWithThe search term matches the start of the item
QOrganizerItemFilter::MatchEndsWithQt::MatchEndsWithThe search term matches the end of the item
QOrganizerItemFilter::MatchFixedStringQt::MatchFixedStringPerforms string-based matching. String-based comparisons are case-insensitive unless the MatchCaseSensitive flag is also specified
QOrganizerItemFilter::MatchCaseSensitiveQt::MatchCaseSensitiveThe search is case sensitive

The MatchFlags type is a typedef for QFlags<MatchFlag>. It stores an OR combination of MatchFlag values.


Member Function Documentation

QOrganizerItemFilter::QOrganizerItemFilter ()

Constructs an empty filter

QOrganizerItemFilter::QOrganizerItemFilter ( const QOrganizerItemFilter & other )

Constructs a new copy of other

QOrganizerItemFilter::~QOrganizerItemFilter ()

Cleans up the memory used by this filter

FilterType QOrganizerItemFilter::type () const

Returns the type of the filter

bool QOrganizerItemFilter::operator!= ( const QOrganizerItemFilter & other ) const

Returns true if this filter is not identical to the other filter.

See also operator==().

QOrganizerItemFilter & QOrganizerItemFilter::operator= ( const QOrganizerItemFilter & other )

Assigns this filter to be other

bool QOrganizerItemFilter::operator== ( const QOrganizerItemFilter & other ) const

Returns true if the filter has the same type and criteria as other


Related Non-Members

const QOrganizerItemFilter operator& ( const QOrganizerItemFilter & left, const QOrganizerItemFilter & right )

Returns a filter which is the intersection of the left and right filters

See also QOrganizerItemIntersectionFilter.

const QOrganizerItemFilter operator| ( const QOrganizerItemFilter & left, const QOrganizerItemFilter & right )

Returns a filter which is the union of the left and right filters

See also QOrganizerItemUnionFilter.

X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.