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  · 

QLandmarkCategory Class Reference

The QLandmarkCategory class designates a grouping of landmarks of similar type. More...

 #include <QLandmarkCategory>

This class was introduced in Qt Mobility 1.1.

Public Functions

QLandmarkCategory ()
QLandmarkCategory ( const QLandmarkCategory & other )
~QLandmarkCategory ()
QLandmarkCategoryId categoryId () const
void clear ()
QUrl iconUrl () const
QString name () const
void setCategoryId ( const QLandmarkCategoryId & id )
void setIconUrl ( const QUrl & url )
void setName ( const QString & name )
bool operator!= ( const QLandmarkCategory & other ) const
QLandmarkCategory & operator= ( const QLandmarkCategory & other )
bool operator== ( const QLandmarkCategory & other ) const

Detailed Description

The QLandmarkCategory class designates a grouping of landmarks of similar type.

Landmarks of similar type may be grouped together into categories, e.g. restaurants, accommodation etc, a QLandmarkCategory object represents one of these.

More than one category can be assigned to a landmark. Assignment of a category to a landmark is achieved by using the QLandmark::setCategoryIds() or QLandmark::addCategoryId() functions.

Some categories may be considered read-only by a manager and cannot be saved. To see if a category is read only, the id of the cateory must be passed into the QLandmarkManager::isReadOnly() function. Localization is only possible for categories that are read-only.

A QLandmarkCategory instance is an in memory representation and may not reflect the state of the category found in persistent storage, until the appropriate synchronization method is called on the QLandmarkManager(e.g.saveCategory(), removeCategory()).

Member Function Documentation

QLandmarkCategory::QLandmarkCategory ()

Constructs an empty category.

A new category will be assigned an invalid QLandmarkCategoryId.

QLandmarkCategory::QLandmarkCategory ( const QLandmarkCategory & other )

Constructs a copy of other.

This function was introduced in Qt Mobility 1.1.

QLandmarkCategory::~QLandmarkCategory ()

Destroys the category.

QLandmarkCategoryId QLandmarkCategory::categoryId () const

Returns the identifier of the category.

This function was introduced in Qt Mobility 1.1.

See also setCategoryId().

void QLandmarkCategory::clear ()

Clears all the data fields of the category.

This function was introduced in Qt Mobility 1.1.

QUrl QLandmarkCategory::iconUrl () const

Returns the url of the category's icon.

This function was introduced in Qt Mobility 1.1.

See also setIconUrl().

QString QLandmarkCategory::name () const

Returns the name of the category.

This function was introduced in Qt Mobility 1.1.

See also setName().

void QLandmarkCategory::setCategoryId ( const QLandmarkCategoryId & id )

Sets the id of the category.

Note that saving a new category using a QLandmarkManager will automatically assign the category a valid identifier.

This function was introduced in Qt Mobility 1.1.

See also categoryId().

void QLandmarkCategory::setIconUrl ( const QUrl & url )

Sets the url of the category's icon

This function was introduced in Qt Mobility 1.1.

See also iconUrl().

void QLandmarkCategory::setName ( const QString & name )

Sets the name of the category.

Using the default manager on the Symbian platform, the catgory name is retricted to a length of 124 characters.

This function was introduced in Qt Mobility 1.1.

See also name().

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

Returns true if this category is not equal to other, otherwise returns false.

This function was introduced in Qt Mobility 1.1.

See also operator==().

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

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

This function was introduced in Qt Mobility 1.1.

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

Returns true if this category is equal to other, otherwise returns false.

This function was introduced in Qt Mobility 1.1.

See also operator!=().

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  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 ? 45
  4. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  5. Les développeurs détestent-ils les antivirus ? Un programmeur manifeste sa haine envers ces solutions de sécurité 6
  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

Une nouvelle ère d'IHM 3D pour les automobiles

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