Home · All Classes · All Functions ·

QContactName Class Reference

The QContactName class contains the 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

Public Variables

const char * DefinitionName
const char * FieldCustomLabel
const char * FieldFirst
const char * FieldFirstName
const char * FieldLast
const char * FieldLastName
const char * FieldMiddle
const char * FieldMiddleName
const char * FieldPrefix
const char * FieldSuffix

Static Public Members

QContactFilter match ( const QString & name )
QContactFilter match ( const QString & firstName, const QString & lastName )

Additional Inherited Members


Detailed Description

The QContactName class contains the 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 a name field (e.g. first, last) that matches the supplied name.

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

Returns a filter suitable for finding contacts with a name matching the specified firstName and 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 char * QContactName::DefinitionName

The constant string which identifies the definition of details which are names.

const char * QContactName::FieldCustomLabel

The constant key for which the custom name label value is stored in details of the QContactName type, if supported.

const char * QContactName::FieldFirst

The constant key for which the first name value is stored in details of the QContactName type.

const char * QContactName::FieldFirstName

The constant key for which the first name value is stored in details of the QContactName type.

const char * QContactName::FieldLast

The constant key for which the last name value is stored in details of the QContactName type.

const char * QContactName::FieldLastName

The constant key for which the last name value is stored in details of the QContactName type.

const char * QContactName::FieldMiddle

The constant key for which the middle name value is stored in details of the QContactName type.

const char * QContactName::FieldMiddleName

The constant key for which the middle name value is stored in details of the QContactName type.

const char * QContactName::FieldPrefix

The constant key for which the name prefix value is stored in details of the QContactName type.

const char * QContactName::FieldSuffix

The constant key for which the name suffix value is stored in details of the QContactName type.


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.0.0