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  · 

QContactDetailDefinition Class Reference

 #include <QContactDetailDefinition>

Public Functions

QContactDetailDefinition ()
QContactDetailDefinition ( const QContactDetailDefinition & other )
~QContactDetailDefinition ()
QMap<QString, QContactDetailFieldDefinition> fields () const
void insertField ( const QString & key, const QContactDetailFieldDefinition & field )
bool isEmpty () const
bool isUnique () const
QString name () const
void removeField ( const QString & key )
void setFields ( const QMap<QString, QContactDetailFieldDefinition> & fields )
void setName ( const QString & definitionName )
void setUnique ( bool unique )
bool operator!= ( const QContactDetailDefinition & other ) const
QContactDetailDefinition & operator= ( const QContactDetailDefinition & other )
bool operator== ( const QContactDetailDefinition & other ) const

Detailed Description

The QContactDetailDefinition class provides the specification for a detail that can be included in any particular QContact. The definition does not include any data, but defines the semantics of the representation and use of data details that are stored in a QContact.

Member Function Documentation

QContactDetailDefinition::QContactDetailDefinition ()

Construct a new, invalid QContactDetailDefinition

QContactDetailDefinition::QContactDetailDefinition ( const QContactDetailDefinition & other )

Constructs a new QContactDetailDefinition from other

QContactDetailDefinition::~QContactDetailDefinition ()

Frees the memory used by this QContactDetailDefinition

QMap<QString, QContactDetailFieldDefinition> QContactDetailDefinition::fields () const

Returns the map of keys to fields which are present in details of this definition

See also setFields().

void QContactDetailDefinition::insertField ( const QString & key, const QContactDetailFieldDefinition & field )

Inserts the field field into the map of fields which constitute the data of details of this definition for the given field key key. If another field for that key already exists in the definition, it will be overwritten.

bool QContactDetailDefinition::isEmpty () const

Returns true if the id and fields of this definition are empty

bool QContactDetailDefinition::isUnique () const

Returns the per-contact uniqueness of this definition

QString QContactDetailDefinition::name () const

Returns the identifier of this detail definition

See also setName().

void QContactDetailDefinition::removeField ( const QString & key )

Removes the field associated with the given field key key from the map of fields which constitute the data of details of this definition.

void QContactDetailDefinition::setFields ( const QMap<QString, QContactDetailFieldDefinition> & fields )

Sets the fields which constitute the data of details of this this definition to fields

See also fields().

void QContactDetailDefinition::setName ( const QString & definitionName )

Sets the unique identifier of this detail type to definitionName.

See also name().

void QContactDetailDefinition::setUnique ( bool unique )

Sets whether a contact can have more than one detail of this type. If unique is true, only one detail of this type can be added. Otherwise, any number can be added.

See also isUnique().

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

Returns true if this detail definition has different allowable field types or uniqueness to the other definition

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

Assigns this QContactDetailDefinition to other

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

Returns true if the definition has the same type, uniqueness and allowable value datatypes as other

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.

[0]; s.parentNode.insertBefore(ga, s); })();
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.1
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