QXmppVCardAddress Class

Represent a vCard address. More...

Header: #include <QXmppVCardIq.h>

Public Types

flags Type
enum TypeFlag { None, Home, Work, Postal, Preferred }

Public Functions

QXmppVCardAddress()
QXmppVCardAddress(const QXmppVCardAddress &other)
QXmppVCardAddress(QXmppVCardAddress &&)
QString country() const
QString locality() const
QString postcode() const
QString region() const
void setCountry(const QString &country)
void setLocality(const QString &locality)
void setPostcode(const QString &postcode)
void setRegion(const QString &region)
void setStreet(const QString &street)
void setType(QXmppVCardAddress::Type type)
QString street() const
QXmppVCardAddress::Type type() const
QXmppVCardAddress &operator=(QXmppVCardAddress &&)
QXmppVCardAddress &operator=(const QXmppVCardAddress &other)
bool operator!=(const QXmppVCardAddress &left, const QXmppVCardAddress &right)
bool operator==(const QXmppVCardAddress &left, const QXmppVCardAddress &right)

Detailed Description

Member Type Documentation

enum QXmppVCardAddress::TypeFlag
flags QXmppVCardAddress::Type

Describes e-mail address types.

ConstantValue
QXmppVCardAddress::None0x0
QXmppVCardAddress::Home0x1
QXmppVCardAddress::Work0x2
QXmppVCardAddress::Postal0x4
QXmppVCardAddress::Preferred0x8

The Type type is a typedef for QFlags<TypeFlag>. It stores an OR combination of TypeFlag values.

Member Function Documentation

QXmppVCardAddress::QXmppVCardAddress()

Constructs an empty address.

QXmppVCardAddress::QXmppVCardAddress(const QXmppVCardAddress &other)

Copy-constructor

QXmppVCardAddress::QXmppVCardAddress(QXmppVCardAddress &&)

Move-constructor

QString QXmppVCardAddress::country() const

Returns the country.

See also setCountry().

QString QXmppVCardAddress::locality() const

Returns the locality.

See also setLocality().

QString QXmppVCardAddress::postcode() const

Returns the postcode.

See also setPostcode().

QString QXmppVCardAddress::region() const

Returns the region.

See also setRegion().

void QXmppVCardAddress::setCountry(const QString &country)

Sets the country.

See also country().

void QXmppVCardAddress::setLocality(const QString &locality)

Sets the locality.

See also locality().

void QXmppVCardAddress::setPostcode(const QString &postcode)

Sets the postcode.

See also postcode().

void QXmppVCardAddress::setRegion(const QString &region)

Sets the region.

See also region().

void QXmppVCardAddress::setStreet(const QString &street)

Sets the street address.

See also street().

void QXmppVCardAddress::setType(QXmppVCardAddress::Type type)

Sets the address type, which is a combination of TypeFlag.

See also type().

QString QXmppVCardAddress::street() const

Returns the street address.

See also setStreet().

QXmppVCardAddress::Type QXmppVCardAddress::type() const

Returns the address type, which is a combination of TypeFlag.

See also setType().

QXmppVCardAddress &QXmppVCardAddress::operator=(QXmppVCardAddress &&)

Move-assignment operator.

QXmppVCardAddress &QXmppVCardAddress::operator=(const QXmppVCardAddress &other)

Assignment operator.

Related Non-Members

bool operator!=(const QXmppVCardAddress &left, const QXmppVCardAddress &right)

Returns true if left and right are not equal.

bool operator==(const QXmppVCardAddress &left, const QXmppVCardAddress &right)

Returns true if left and right are equal.