QContactPhoneNumber Class

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

Header: #include <QContactPhoneNumber>
Inherits: QContactDetail.

Public Types

enum PhoneNumberField { FieldNumber, FieldSubTypes }
enum SubType { SubTypeLandline, SubTypeMobile, SubTypeFax, SubTypePager, ..., SubTypeDtmfMenu }

Public Functions

QString number() const
void setNumber(const QString & number)
void setSubTypes(const QList<int> & subTypes)
QList<int> subTypes() const

Static Public Members

const DetailType Type
QContactFilter match(const QString & number)

Detailed Description

The QContactPhoneNumber class provides a phone number of a contact.

Member Type Documentation

enum QContactPhoneNumber::PhoneNumberField

This enumeration defines the fields supported by QContactPhoneNumber.

ConstantValueDescription
QContactPhoneNumber::FieldNumber0The value stored in this field contains the phone number.
QContactPhoneNumber::FieldSubTypes1The value stored in this field contains the sub types of a QContactPhoneNumber.

See also number() and setNumber().

enum QContactPhoneNumber::SubType

This enumeration defines the predefined enum constants for a sub type value of a QContactPhoneNumber.

ConstantValueDescription
QContactPhoneNumber::SubTypeLandline0The value stored is a landline number.
QContactPhoneNumber::SubTypeMobile1The value stored is a mobile (cellular) number.
QContactPhoneNumber::SubTypeFax2The value stored is a fax number.
QContactPhoneNumber::SubTypePager3The value stored is a pager number.
QContactPhoneNumber::SubTypeCar7The value stored is a car phone.
QContactPhoneNumber::SubTypeBulletinBoardSystem8The value stored is a bulletin board system.
QContactPhoneNumber::SubTypeVoice4The value stored is indicating this phone number supports voice transmission.
QContactPhoneNumber::SubTypeModem5The value stored is indicating this phone number supports data transmission.
QContactPhoneNumber::SubTypeVideo6The value stored is indicating this phone number supports video transmission.
QContactPhoneNumber::SubTypeMessagingCapable9The value stored is indicating this phone number supports messaging services.
QContactPhoneNumber::SubTypeAssistant10The value stored is indicating this phone number is the number of an assistant.
QContactPhoneNumber::SubTypeDtmfMenu11The value stored is indicating this phone number supports DTMF-controlled voice menu navigation.

See also subTypes() and setSubTypes().

Member Function Documentation

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

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

QString QContactPhoneNumber::number() const

Returns the phone number stored in this detail.

See also setNumber().

void QContactPhoneNumber::setNumber(const QString & number)

Sets the phone number stored in this detail to number.

See also number().

void QContactPhoneNumber::setSubTypes(const QList<int> & subTypes)

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

See also subTypes().

QList<int> QContactPhoneNumber::subTypes() const

Returns the list of subtypes that this detail implements.

See also setSubTypes().

Member Variable Documentation

const DetailType QContactPhoneNumber::Type

The enum constant for the type identifier of QContactPhoneNumber details.