QXmppVCardPhone Class
Represents a vCard phone number. More...
| Header: | #include <QXmppVCardIq.h> |
Public Types
Public Functions
| QXmppVCardPhone() | |
| QXmppVCardPhone(const QXmppVCardPhone &other) | |
| QString | number() const |
| void | setNumber(const QString &number) |
| void | setType(QXmppVCardPhone::Type type) |
| QXmppVCardPhone::Type | type() const |
| QXmppVCardPhone & | operator=(const QXmppVCardPhone &other) |
Related Non-Members
| bool | operator!=(const QXmppVCardPhone &left, const QXmppVCardPhone &right) |
| bool | operator==(const QXmppVCardPhone &left, const QXmppVCardPhone &right) |
Detailed Description
Member Type Documentation
enum QXmppVCardPhone::TypeFlag
flags QXmppVCardPhone::Type
Describes phone number types.
| Constant | Value |
|---|---|
QXmppVCardPhone::None | 0x0 |
QXmppVCardPhone::Home | 0x1 |
QXmppVCardPhone::Work | 0x2 |
QXmppVCardPhone::Voice | 0x4 |
QXmppVCardPhone::Fax | 0x8 |
QXmppVCardPhone::Pager | 0x10 |
QXmppVCardPhone::Messaging | 0x20 |
QXmppVCardPhone::Cell | 0x40 |
QXmppVCardPhone::Video | 0x80 |
QXmppVCardPhone::BBS | 0x100 |
QXmppVCardPhone::Modem | 0x200 |
QXmppVCardPhone::ISDN | 0x400 |
QXmppVCardPhone::PCS | 0x800 |
QXmppVCardPhone::Preferred | 0x1000 |
The Type type is a typedef for QFlags<TypeFlag>. It stores an OR combination of TypeFlag values.
Member Function Documentation
QXmppVCardPhone::QXmppVCardPhone()
Constructs an empty phone number.
QXmppVCardPhone::QXmppVCardPhone(const QXmppVCardPhone &other)
Copy-constructor
QString QXmppVCardPhone::number() const
Returns the phone number.
See also setNumber().
void QXmppVCardPhone::setNumber(const QString &number)
Sets the phone number.
See also number().
void QXmppVCardPhone::setType(QXmppVCardPhone::Type type)
Sets the phone number type, which is a combination of TypeFlag.
See also type().
QXmppVCardPhone::Type QXmppVCardPhone::type() const
Returns the phone number type, which is a combination of TypeFlag.
See also setType().
QXmppVCardPhone &QXmppVCardPhone::operator=(const QXmppVCardPhone &other)
Copy-assignment operator, copying other.
Related Non-Members
bool operator!=(const QXmppVCardPhone &left, const QXmppVCardPhone &right)
Returns true if left and right are not equal.
bool operator==(const QXmppVCardPhone &left, const QXmppVCardPhone &right)
Returns true if left and right are equal.