Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QLandmarkFilter Class Reference

The 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

enum FilterType { InvalidFilter, DefaultFilter, IntersectionFilter, UnionFilter, ..., LandmarkIdFilter }
enum MatchFlag { MatchExactly, MatchContains, MatchStartsWith, MatchEndsWith, MatchFixedString, MatchCaseSensitive }
flags MatchFlags

Public Functions

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

Related Non-Members

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

Detailed Description

The 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

enum QLandmarkFilter::FilterType

Describes the type of the filter

ConstantValueDescription
QLandmarkFilter::InvalidFilter0An invalid filter which matches nothing
QLandmarkFilter::DefaultFilter1A filter which matches all landmarks.
QLandmarkFilter::IntersectionFilter6A filter which performs an AND operation with its constituent filters
QLandmarkFilter::UnionFilter7A filter which performs an OR operation with its constiuent filters.
QLandmarkFilter::NameFilter2A filter which matches landmarks based on name
QLandmarkFilter::ProximityFilter3A filter which matches landmarks within a certain range of a given coordinate.
QLandmarkFilter::CategoryFilter4A filter which matches landmarks that belong to a given category
QLandmarkFilter::BoxFilter5A filter which matches landmarks within a given bounding box.
QLandmarkFilter::AttributeFilter8A filter which matches landmarks based on generic attributes.
QLandmarkFilter::LandmarkIdFilter9A filter which matches landmarks based on a list of landmark ids.

enum QLandmarkFilter::MatchFlag
flags QLandmarkFilter::MatchFlags

Describes the semantics of matching followed by the filter.

ConstantValueDescription
QLandmarkFilter::MatchExactlyQt::MatchExactlyPerforms QVariant-based matching. (For the Symbian and S60 platforms MatchExactly has the same semantics as MatchFixedString)
QLandmarkFilter::MatchContainsQt::MatchContainsThe search term is contained in the item. (For the Symbian and S60 platforms, MatchContains is not supported)
QLandmarkFilter::MatchStartsWithQt::MatchStartsWithThe search term matches the start of the item.
QLandmarkFilter::MatchEndsWithQt::MatchEndsWithThe search term matches the end of the item.
QLandmarkFilter::MatchFixedStringQt::MatchFixedStringPerforms string-based matching. String-based comparisons are case-insensitive unless the MatchCaseSensitive flag is also specified.
QLandmarkFilter::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

QLandmarkFilter::QLandmarkFilter ()

Constructs an default landmark filter.

QLandmarkFilter::QLandmarkFilter ( const QLandmarkFilter & other )

Constructs a copy of other.

This function was introduced in Qt Mobility 1.1.

QLandmarkFilter::~QLandmarkFilter () [virtual]

Destroys the filter.

FilterType QLandmarkFilter::type () const

Returns the type of the filter.

This function was introduced in Qt Mobility 1.1.

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

Returns true if this filter is not identical to other.

This function was introduced in Qt Mobility 1.1.

See also operator==().

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

Assigns other to this filter and returns a reference to this filter.

This function was introduced in Qt Mobility 1.1.

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

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!=().

Related Non-Members

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

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.

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

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.

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. Les développeurs détestent-ils les antivirus ? Un programmeur manifeste sa haine envers ces solutions de sécurité 23
  2. «Le projet de loi des droits du développeur» : quelles conditions doivent remplir les entreprises pour que le développeur puisse réussir ? 45
  3. Une nouvelle ère d'IHM 3D pour les automobiles, un concept proposé par Digia et implémenté avec Qt 3
  4. Qt Creator 2.5 est sorti en beta, l'EDI supporte maintenant plus de fonctionnalités de C++11 2
  5. PySide devient un add-on Qt et rejoint le Qt Project et le modèle d'open gouvernance 1
  6. Vingt sociétés montrent leurs décodeurs basés sur Qt au IPTV World Forum, en en exploitant diverses facettes (déclaratif, Web, widgets) 0
  7. Thread travailleur avec Qt en utilisant les signaux et les slots, un article de Christophe Dumez traduit par Thibaut Cuvelier 1
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 94
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Pourquoi les programmeurs sont-ils moins payés que les gestionnaires de programmes ? Manquent-ils de pouvoir de négociation ? 50
  4. Les développeurs détestent-ils les antivirus ? Un programmeur manifeste sa haine envers ces solutions de sécurité 23
  5. «Le projet de loi des droits du développeur» : quelles conditions doivent remplir les entreprises pour que le développeur puisse réussir ? 45
  6. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  7. Qt Commercial : Digia organise un webinar gratuit le 27 mars sur la conception d'interfaces utilisateur et d'applications avec le framework 0
Page suivante

Le blog Digia au hasard

Logo

Déploiement d'applications Qt Commercial sur les tablettes Windows 8

Le blog Digia est l'endroit privilégié pour la communication sur l'édition commerciale de Qt, où des réponses publiques sont apportées aux questions les plus posées au support. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

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 !
 
 
 
 
Partenaires

Hébergement Web