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 |
- 22 public functions inherited from QContactDetail
Static Public Members
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.
Constant | Value | Description |
---|---|---|
QContactPhoneNumber::FieldNumber | 0 | The value stored in this field contains the phone number. |
QContactPhoneNumber::FieldSubTypes | 1 | The 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.
Constant | Value | Description |
---|---|---|
QContactPhoneNumber::SubTypeLandline | 0 | The value stored is a landline number. |
QContactPhoneNumber::SubTypeMobile | 1 | The value stored is a mobile (cellular) number. |
QContactPhoneNumber::SubTypeFax | 2 | The value stored is a fax number. |
QContactPhoneNumber::SubTypePager | 3 | The value stored is a pager number. |
QContactPhoneNumber::SubTypeCar | 7 | The value stored is a car phone. |
QContactPhoneNumber::SubTypeBulletinBoardSystem | 8 | The value stored is a bulletin board system. |
QContactPhoneNumber::SubTypeVoice | 4 | The value stored is indicating this phone number supports voice transmission. |
QContactPhoneNumber::SubTypeModem | 5 | The value stored is indicating this phone number supports data transmission. |
QContactPhoneNumber::SubTypeVideo | 6 | The value stored is indicating this phone number supports video transmission. |
QContactPhoneNumber::SubTypeMessagingCapable | 9 | The value stored is indicating this phone number supports messaging services. |
QContactPhoneNumber::SubTypeAssistant | 10 | The value stored is indicating this phone number is the number of an assistant. |
QContactPhoneNumber::SubTypeDtmfMenu | 11 | The 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.