QtMobility Reference Documentation

QContactPhoneNumber Class Reference

The QContactPhoneNumber class provides a phone number of a contact. More...

 #include <QContactPhoneNumber>

Inherits: QContactDetail.

This class was introduced in Qt Mobility 1.0.

Public Functions

QString number () const
void setNumber ( const QString & number )
void setSubTypes ( const QStringList & subTypes )
void setSubTypes ( const QString & subType )
QStringList subTypes () const

Static Public Members

const QLatin1Constant DefinitionName
const QLatin1Constant FieldNumber
const QLatin1Constant FieldSubTypes
const QLatin1Constant SubTypeAssistant
const QLatin1Constant SubTypeBulletinBoardSystem
const QLatin1Constant SubTypeCar
const QLatin1Constant SubTypeDtmfMenu
const QLatin1Constant SubTypeFax
const QLatin1Constant SubTypeLandline
const QLatin1Constant SubTypeMessagingCapable
const QLatin1Constant SubTypeMobile
const QLatin1Constant SubTypeModem
const QLatin1Constant SubTypePager
const QLatin1Constant SubTypeVideo
const QLatin1Constant SubTypeVoice
QContactFilter match ( const QString & number )

Detailed Description

The QContactPhoneNumber class provides a phone number 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

QContactFilter QContactPhoneNumber::match ( const QString & number ) [static]

Returns a filter suitable for finding contacts with a phone number containing the specified number.

This function was introduced in Qt Mobility 1.0.

QString QContactPhoneNumber::number () const

Returns the phone number stored in this detail.

This function was introduced in Qt Mobility 1.0.

See also setNumber().

void QContactPhoneNumber::setNumber ( const QString & number )

Sets the phone number stored in this detail to number.

This function was introduced in Qt Mobility 1.0.

See also number().

void QContactPhoneNumber::setSubTypes ( const QStringList & subTypes )

Sets the subtypes which this detail implements to be those contained in the list of given subTypes

This function was introduced in Qt Mobility 1.0.

See also subTypes().

void QContactPhoneNumber::setSubTypes ( const QString & subType )

Sets the subtypes which this detail implements to be just the given subType.

This function was introduced in Qt Mobility 1.0.

QStringList QContactPhoneNumber::subTypes () const

Returns the list of subtypes that this detail implements.

This function was introduced in Qt Mobility 1.0.

See also setSubTypes().

Member Variable Documentation

const QLatin1Constant QContactPhoneNumber::DefinitionName

The string constant for the definition name of QContactPhoneNumber details.

const QLatin1Constant QContactPhoneNumber::FieldNumber

The field key constant for the value containing the phone number.

See also number() and setNumber().

const QLatin1Constant QContactPhoneNumber::FieldSubTypes

The field key constant for the field that stores the sub types of a QContactPhoneNumber.

See also subTypes() and setSubTypes().

const QLatin1Constant QContactPhoneNumber::SubTypeAssistant

The predefined string constant for a sub type value, indicating this phone number is the number of an assistant.

See also subTypes() and setSubTypes().

const QLatin1Constant QContactPhoneNumber::SubTypeBulletinBoardSystem

The predefined string constant for a sub type value, indicating this phone number is a bulletin board system.

See also subTypes() and setSubTypes().

const QLatin1Constant QContactPhoneNumber::SubTypeCar

The predefined string constant for a sub type value, indicating this phone number is a car phone.

See also subTypes() and setSubTypes().

const QLatin1Constant QContactPhoneNumber::SubTypeDtmfMenu

The predefined string constant for a sub type value, indicating this phone number supports DTMF-controlled voice menu navigation.

See also subTypes() and setSubTypes().

const QLatin1Constant QContactPhoneNumber::SubTypeFax

The predefined string constant for a sub type value, indicating this phone number is a fax number.

See also subTypes() and setSubTypes().

const QLatin1Constant QContactPhoneNumber::SubTypeLandline

The predefined string constant for a sub type value, indicating this phone number is a landline number.

See also subTypes() and setSubTypes().

const QLatin1Constant QContactPhoneNumber::SubTypeMessagingCapable

The predefined string constant for a sub type value, indicating this phone number supports messaging services.

See also subTypes() and setSubTypes().

const QLatin1Constant QContactPhoneNumber::SubTypeMobile

The predefined string constant for a sub type value, indicating this phone number is a mobile (cellular) number.

See also subTypes() and setSubTypes().

const QLatin1Constant QContactPhoneNumber::SubTypeModem

The predefined string constant for a sub type value, indicating this phone number supports data transmission.

See also subTypes() and setSubTypes().

const QLatin1Constant QContactPhoneNumber::SubTypePager

The predefined string constant for a sub type value, indicating this phone number is a pager number.

See also subTypes() and setSubTypes().

const QLatin1Constant QContactPhoneNumber::SubTypeVideo

The predefined string constant for a sub type value, indicating this phone number supports video transmission.

See also subTypes() and setSubTypes().

const QLatin1Constant QContactPhoneNumber::SubTypeVoice

The predefined string constant for a sub type value, indicating this phone number supports voice transmission.

See also subTypes() and setSubTypes().

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.