QtMobility Reference Documentation

QContactName Class Reference

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

 #include <QContactName>

Inherits: QContactDetail.

This class was introduced in Qt Mobility 1.0.

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.

This leaf-class has been part of the default schema since version 1.0 of the Qt Mobility project.

Member Function Documentation

QString QContactName::customLabel () const

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

This function was introduced in Qt Mobility 1.0.

See also setCustomLabel().

QString QContactName::firstName () const

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

This function was introduced in Qt Mobility 1.0.

See also setFirstName().

QString QContactName::lastName () const

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

This function was introduced in Qt Mobility 1.0.

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.

This function was introduced in Qt Mobility 1.0.

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.

This function was introduced in Qt Mobility 1.0.

QString QContactName::middleName () const

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

This function was introduced in Qt Mobility 1.0.

See also setMiddleName().

QString QContactName::prefix () const

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

This function was introduced in Qt Mobility 1.0.

See also setPrefix().

void QContactName::setCustomLabel ( const QString & customLabel )

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

This function was introduced in Qt Mobility 1.0.

See also customLabel().

void QContactName::setFirstName ( const QString & firstName )

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

This function was introduced in Qt Mobility 1.0.

See also firstName().

void QContactName::setLastName ( const QString & lastName )

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

This function was introduced in Qt Mobility 1.0.

See also lastName().

void QContactName::setMiddleName ( const QString & middleName )

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

This function was introduced in Qt Mobility 1.0.

See also middleName().

void QContactName::setPrefix ( const QString & prefix )

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

This function was introduced in Qt Mobility 1.0.

See also prefix().

void QContactName::setSuffix ( const QString & suffix )

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

This function was introduced in Qt Mobility 1.0.

See also suffix().

QString QContactName::suffix () const

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

This function was introduced in Qt Mobility 1.0.

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

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.