QXmppVCardPhone Class

Represents a vCard phone number. More...

Header: #include <QXmppVCardIq.h>

Public Types

flags Type
enum TypeFlag { None, Home, Work, Voice, Fax, …, Preferred }

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

ConstantValue
QXmppVCardPhone::None0x0
QXmppVCardPhone::Home0x1
QXmppVCardPhone::Work0x2
QXmppVCardPhone::Voice0x4
QXmppVCardPhone::Fax0x8
QXmppVCardPhone::Pager0x10
QXmppVCardPhone::Messaging0x20
QXmppVCardPhone::Cell0x40
QXmppVCardPhone::Video0x80
QXmppVCardPhone::BBS0x100
QXmppVCardPhone::Modem0x200
QXmppVCardPhone::ISDN0x400
QXmppVCardPhone::PCS0x800
QXmppVCardPhone::Preferred0x1000

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.