Home · All Classes · All Functions ·

QContactName Class Reference

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

    #include <QContactName>

Inherits QContactDetail.

Public Functions

Static Public Members


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


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