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  · 

QContactName Class Reference

The QContactName class contains a name of a contact. More...

    #include <QContactName>

Inherits QContactDetail.


Public Functions

QString customLabel () const
QString firstName () const
QString lastName () const
QString middleName () const
QString prefix () const
void setCustomLabel ( const QString & customLabel )
void setFirstName ( const QString & firstName )
void setLastName ( const QString & lastName )
void setMiddleName ( const QString & middleName )
void setPrefix ( const QString & prefix )
void setSuffix ( const QString & suffix )
QString suffix () const

Static Public Members

const QLatin1Constant DefinitionName
const QLatin1Constant FieldCustomLabel
const QLatin1Constant FieldFirstName
const QLatin1Constant FieldLastName
const QLatin1Constant FieldMiddleName
const QLatin1Constant FieldPrefix
const QLatin1Constant FieldSuffix
QContactFilter match ( const QString & name )
QContactFilter match ( const QString & firstName, const QString & lastName )

Detailed Description

The QContactName class contains a name of a contact.


Member Function Documentation

QString QContactName::customLabel () const

Returns the custom label of the name stored in this detail.

See also setCustomLabel().

QString QContactName::firstName () const

Returns the first (given) name segment of the name stored in this detail.

See also setFirstName().

QString QContactName::lastName () const

Returns the last (family, or surname) name segment of the name stored in this detail.

See also setLastName().

QContactFilter QContactName::match ( const QString & name )   [static]

Returns a filter suitable for finding contacts with any name field (e.g. first, last) that contains the supplied name.

QContactFilter QContactName::match ( const QString & firstName, const QString & lastName )   [static]

Returns a filter suitable for finding contacts with a name with a first name containing the specified firstName and a last name containing the specified lastName. If either parameter is empty, any value will match that component.

QString QContactName::middleName () const

Returns the middle (additional, or other) name segment of the name stored in this detail.

See also setMiddleName().

QString QContactName::prefix () const

Returns the prefix segment of the name stored in this detail.

See also setPrefix().

void QContactName::setCustomLabel ( const QString & customLabel )

Sets the custom label of the name stored in this detail to customLabel.

See also customLabel().

void QContactName::setFirstName ( const QString & firstName )

Sets the first name segment of the name stored in this detail to firstName.

See also firstName().

void QContactName::setLastName ( const QString & lastName )

Sets the last name segment of the name stored in this detail to lastName.

See also lastName().

void QContactName::setMiddleName ( const QString & middleName )

Sets the middle name segment of the name stored in this detail to middleName.

See also middleName().

void QContactName::setPrefix ( const QString & prefix )

Sets the prefix segment of the name stored in this detail to prefix.

See also prefix().

void QContactName::setSuffix ( const QString & suffix )

Sets the suffix segment of the name stored in this detail to suffix.

See also suffix().

QString QContactName::suffix () const

Returns the suffix segment of the name stored in this detail.

See also setSuffix().


Member Variable Documentation

const QLatin1Constant QContactName::DefinitionName

The string constant for the definition name of QContactName details.

const QLatin1Constant QContactName::FieldCustomLabel

The field key constant for the value containing a custom formatted label.

See also customLabel() and setCustomLabel().

const QLatin1Constant QContactName::FieldFirstName

The field key constant for the value containing the first name part of the name.

See also firstName() and setFirstName().

const QLatin1Constant QContactName::FieldLastName

The field key constant for the value containing the last name part of the name.

See also lastName() and setLastName().

const QLatin1Constant QContactName::FieldMiddleName

The field key constant for the value containing the middle name part of the name.

See also middleName() and setMiddleName().

const QLatin1Constant QContactName::FieldPrefix

The field key constant for the value containing the prefix part of the name.

See also prefix() and setPrefix().

const QLatin1Constant QContactName::FieldSuffix

The field key constant for the value containing the suffix part of the name.

See also suffix() and setSuffix().

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.0
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