Qt Mobility Reference Documentation

QLandmarkIdFilter Class Reference

The QLandmarkIdFilter class is used to search for landmarks based on a list of landmark identifiers. More...

 #include <QLandmarkIdFilter>

Inherits QLandmarkFilter.


Public Types

enum MatchingScheme { MatchAll, MatchSubset }

Public Functions

QLandmarkIdFilter ( const QList<QLandmarkId> & ids = QList<QLandmarkId> (), MatchingScheme matchingScheme = MatchSubset )
QLandmarkIdFilter ( const QLandmarkFilter & other )
virtual ~QLandmarkIdFilter ()
void append ( const QLandmarkId & id )
void clear ()
QList<QLandmarkId> landmarkIds () const
MatchingScheme matchingScheme () const
void remove ( const QLandmarkId & id )
void setLandmarkIds ( const QList<QLandmarkId> & ids )
void setMatchingScheme ( MatchingScheme matchingScheme )
QLandmarkIdFilter & operator<< ( const QLandmarkId & id )

Detailed Description

The QLandmarkIdFilter class is used to search for landmarks based on a list of landmark identifiers.


Member Type Documentation

enum QLandmarkIdFilter::MatchingScheme

Defines the matching behavior of the id filter.

ConstantValueDescription
QLandmarkIdFilter::MatchAll0A landmark must be returned for every id assigned to the filter. Failure to match every id results in a QLandmarkManager::DoesNotExistError.
QLandmarkIdFilter::MatchSubset1Every id does not have to be matched to a landmark. Matching only a subset of the assigned ids is acceptable.

Member Function Documentation

QLandmarkIdFilter::QLandmarkIdFilter ( const QList<QLandmarkId> & ids = QList<QLandmarkId> (), MatchingScheme matchingScheme = MatchSubset )

Creates a filter that selects landmarks using a list of landmark ids and a matchingScheme.

QLandmarkIdFilter::QLandmarkIdFilter ( const QLandmarkFilter & other )

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

QLandmarkIdFilter::~QLandmarkIdFilter () [virtual]

Destroys the filter.

void QLandmarkIdFilter::append ( const QLandmarkId & id )

Adds id to the list of landmark ids this filter searches for.

void QLandmarkIdFilter::clear ()

Removes all identifiers from the filter.

QList<QLandmarkId> QLandmarkIdFilter::landmarkIds () const

Returns the list of landmark identifiers that the filter will use to determine matches.

See also setLandmarkIds().

MatchingScheme QLandmarkIdFilter::matchingScheme () const

Returns the matching scheme of the filter.

The matching scheme specifies whether the filter needs to match all landmark ids or only a subset. The default scheme is MatchSubset.

See also setMatchingScheme().

void QLandmarkIdFilter::remove ( const QLandmarkId & id )

Removes id to the list of landmark ids this filter searches for.

void QLandmarkIdFilter::setLandmarkIds ( const QList<QLandmarkId> & ids )

Sets the ids that the filter will use to determine matches.

See also landmarkIds().

void QLandmarkIdFilter::setMatchingScheme ( MatchingScheme matchingScheme )

Sets the matchingScheme of the filter.

See also matchingScheme().

QLandmarkIdFilter & QLandmarkIdFilter::operator<< ( const QLandmarkId & id )

Appends the given id to the list of landmark identifiers this filter searches for.


Copyright © 2009-2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.1.0