QLandmarkFilter Class ReferenceThe QLandmarkFilter class serves as the base class for all filter classes. Also serves as the default filter which retrieves all landmarks. More... #include <QLandmarkFilter> Inherited by: QLandmarkAttributeFilter, QLandmarkBoxFilter, QLandmarkCategoryFilter, QLandmarkIdFilter, QLandmarkIntersectionFilter, QLandmarkNameFilter, QLandmarkProximityFilter, and QLandmarkUnionFilter. This class was introduced in Qt Mobility 1.1. Public Types
Public Functions
Related Non-Members
Detailed DescriptionThe QLandmarkFilter class serves as the base class for all filter classes. Also serves as the default filter which retrieves all landmarks. This class is used as a parameter to search for landmarks, it allows selection of landmarks which meet certain criteria. It is used with QLandmarkManager for synchronous searches or the appropriate request classes for asynchronous searches. The QLandmarkFilter is primarily intended to serve as the base class for all filter types. However it also has the type of a QLandmark::DefaultFilter, and may thus be used as a filter to match all landmarks. Member Type Documentation
|
Constant | Value | Description |
---|---|---|
QLandmarkFilter::InvalidFilter | 0 | An invalid filter which matches nothing |
QLandmarkFilter::DefaultFilter | 1 | A filter which matches all landmarks. |
QLandmarkFilter::IntersectionFilter | 6 | A filter which performs an AND operation with its constituent filters |
QLandmarkFilter::UnionFilter | 7 | A filter which performs an OR operation with its constiuent filters. |
QLandmarkFilter::NameFilter | 2 | A filter which matches landmarks based on name |
QLandmarkFilter::ProximityFilter | 3 | A filter which matches landmarks within a certain range of a given coordinate. |
QLandmarkFilter::CategoryFilter | 4 | A filter which matches landmarks that belong to a given category |
QLandmarkFilter::BoxFilter | 5 | A filter which matches landmarks within a given bounding box. |
QLandmarkFilter::AttributeFilter | 8 | A filter which matches landmarks based on generic attributes. |
QLandmarkFilter::LandmarkIdFilter | 9 | A filter which matches landmarks based on a list of landmark ids. |
Describes the semantics of matching followed by the filter.
Constant | Value | Description |
---|---|---|
QLandmarkFilter::MatchExactly | Qt::MatchExactly | Performs QVariant-based matching. (For the Symbian and S60 platforms MatchExactly has the same semantics as MatchFixedString) |
QLandmarkFilter::MatchContains | Qt::MatchContains | The search term is contained in the item. (For the Symbian and S60 platforms, MatchContains is not supported) |
QLandmarkFilter::MatchStartsWith | Qt::MatchStartsWith | The search term matches the start of the item. |
QLandmarkFilter::MatchEndsWith | Qt::MatchEndsWith | The search term matches the end of the item. |
QLandmarkFilter::MatchFixedString | Qt::MatchFixedString | Performs string-based matching. String-based comparisons are case-insensitive unless the MatchCaseSensitive flag is also specified. |
QLandmarkFilter::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 default landmark filter.
Constructs a copy of other.
This function was introduced in Qt Mobility 1.1.
Destroys the filter.
Returns the type of the filter.
This function was introduced in Qt Mobility 1.1.
Returns true if this filter is not identical to other.
This function was introduced in Qt Mobility 1.1.
See also operator==().
Assigns other to this filter and returns a reference to this filter.
This function was introduced in Qt Mobility 1.1.
Returns true if the filter has the same type and criteria as other.
This function was introduced in Qt Mobility 1.1.
See also operator!=().
Returns a filter which is the intersection of the left and right filters
This function was introduced in Qt Mobility 1.1.
See also QLandmarkIntersectionFilter.
Returns a filter which is the union of the left and right filters
This function was introduced in Qt Mobility 1.1.
See also QLandmarkUnionFilter.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtmobility-1.2 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com