14namespace QXmpp::Private {
18class QXmppVCardAddressPrivate;
19class QXmppVCardEmailPrivate;
20class QXmppVCardPhonePrivate;
21class QXmppVCardOrganizationPrivate;
22class QXmppVCardIqPrivate;
37 Q_DECLARE_FLAGS(Type, TypeFlag)
66 void parse(
const QDomElement &element);
67 void toXml(QXmlStreamWriter *stream)
const;
71 QSharedDataPointer<QXmppVCardAddressPrivate> d;
91 Q_DECLARE_FLAGS(Type, TypeFlag)
106 void parse(
const QDomElement &element);
107 void toXml(QXmlStreamWriter *stream)
const;
111 QSharedDataPointer<QXmppVCardEmailPrivate> d;
139 Q_DECLARE_FLAGS(Type, TypeFlag)
154 void parse(
const QDomElement &element);
155 void toXml(QXmlStreamWriter *stream)
const;
159 QSharedDataPointer<QXmppVCardPhonePrivate> d;
182 QString
unit()
const;
185 QString
title()
const;
188 QString
role()
const;
192 void parse(
const QDomElement &element);
193 void toXml(QXmlStreamWriter *stream)
const;
197 QSharedDataPointer<QXmppVCardOrganizationPrivate> d;
228 QString
email()
const;
246 QByteArray
photo()
const;
253 void setUrl(
const QString &);
255 QList<QXmppVCardAddress>
addresses()
const;
258 QList<QXmppVCardEmail>
emails()
const;
261 QList<QXmppVCardPhone>
phones()
const;
268 static bool isVCard(
const QDomElement &element);
269 static bool checkIqType(
const QString &tagName,
const QString &xmlNamespace);
273 friend struct QXmpp::Private::VCardData;
276 void parseElementFromChild(
const QDomElement &)
override;
277 void toXmlElementFromChild(QXmlStreamWriter *writer)
const override;
281 QSharedDataPointer<QXmppVCardIqPrivate> d;
QXmppIq(QXmppIq::Type type=QXmppIq::Get)
Definition QXmppIq.cpp:34
QXmppIq::Type type() const
Definition QXmppIq.cpp:55
Represent a vCard address.
Definition QXmppVCardIq.h:27
TypeFlag
Describes e-mail address types.
Definition QXmppVCardIq.h:30
void setPostcode(const QString &postcode)
Sets the postcode.
Definition QXmppVCardIq.cpp:114
QXmppVCardAddress(const QXmppVCardAddress &other)
Copy-constructor.
void setRegion(const QString ®ion)
Sets the region.
Definition QXmppVCardIq.cpp:126
void setType(Type type)
Sets the address type, which is a combination of TypeFlag.
Definition QXmppVCardIq.cpp:150
QXmppVCardAddress(QXmppVCardAddress &&)
Move-constructor.
Type type() const
Returns the address type, which is a combination of TypeFlag.
Definition QXmppVCardIq.cpp:144
QString region() const
Returns the region.
Definition QXmppVCardIq.cpp:120
QXmppVCardAddress & operator=(const QXmppVCardAddress &other)
Assignment operator.
void setLocality(const QString &locality)
Sets the locality.
Definition QXmppVCardIq.cpp:101
QString street() const
Returns the street address.
Definition QXmppVCardIq.cpp:132
void setStreet(const QString &street)
Sets the street address.
Definition QXmppVCardIq.cpp:138
QXmppVCardAddress()
Constructs an empty address.
Definition QXmppVCardIq.cpp:50
QString postcode() const
Returns the postcode.
Definition QXmppVCardIq.cpp:108
QString country() const
Returns the country.
Definition QXmppVCardIq.cpp:83
QString locality() const
Returns the locality.
Definition QXmppVCardIq.cpp:95
QXmppVCardAddress & operator=(QXmppVCardAddress &&)
Move-assignment operator.
void setCountry(const QString &country)
Sets the country.
Definition QXmppVCardIq.cpp:89
Represents a vCard e-mail address.
Definition QXmppVCardIq.h:80
TypeFlag
Describes e-mail address types.
Definition QXmppVCardIq.h:83
void setAddress(const QString &address)
Sets the e-mail address.
Definition QXmppVCardIq.cpp:256
QXmppVCardEmail(const QXmppVCardEmail &other)
Copy-constructor.
QString address() const
Returns the e-mail address.
Definition QXmppVCardIq.cpp:250
QXmppVCardEmail & operator=(const QXmppVCardEmail &other)
Copy-assignment operator.
QXmppVCardEmail()
Constructs an empty e-mail address.
Definition QXmppVCardIq.cpp:223
void setType(Type type)
Sets the e-mail type, which is a combination of TypeFlag.
Definition QXmppVCardIq.cpp:268
Type type() const
Returns the e-mail type, which is a combination of TypeFlag.
Definition QXmppVCardIq.cpp:262
Represents the XMPP vCard.
Definition QXmppVCardIq.h:214
void setPhoto(const QByteArray &)
Sets the photo's binary contents.
Definition QXmppVCardIq.cpp:801
QXmppVCardIq & operator=(const QXmppVCardIq &other)
Assigns other to this vCard IQ.
Definition QXmppVCardIq.cpp:627
QByteArray photo() const
Definition QXmppVCardIq.cpp:795
QString lastName() const
Returns the last name.
Definition QXmppVCardIq.cpp:727
QString nickName() const
Returns the nickname.
Definition QXmppVCardIq.cpp:751
QDate birthday() const
Returns the date of birth of the individual associated with the vCard.
Definition QXmppVCardIq.cpp:660
QString email() const
Returns the email address.
Definition QXmppVCardIq.cpp:684
QString photoType() const
Returns the photo's MIME type.
Definition QXmppVCardIq.cpp:807
void setOrganization(const QXmppVCardOrganization &)
Sets the organization info.
Definition QXmppVCardIq.cpp:861
void setFullName(const QString &)
Sets the full name.
Definition QXmppVCardIq.cpp:721
QString fullName() const
Returns the full name.
Definition QXmppVCardIq.cpp:715
QString firstName() const
Returns the first name.
Definition QXmppVCardIq.cpp:703
QString middleName() const
Returns the middle name.
Definition QXmppVCardIq.cpp:739
void setUrl(const QString &)
Definition QXmppVCardIq.cpp:777
QXmppVCardOrganization organization() const
Returns the organization info.
Definition QXmppVCardIq.cpp:855
QXmppVCardIq(const QString &bareJid=QString())
Constructs a QXmppVCardIq for the specified recipient.
Definition QXmppVCardIq.cpp:609
QList< QXmppVCardEmail > emails() const
Returns the e-mail addresses.
Definition QXmppVCardIq.cpp:831
QString url() const
Definition QXmppVCardIq.cpp:767
void setFirstName(const QString &)
Sets the first name.
Definition QXmppVCardIq.cpp:709
void setDescription(const QString &description)
Sets the free-form descriptive text.
Definition QXmppVCardIq.cpp:678
void setNickName(const QString &)
Sets the nickname.
Definition QXmppVCardIq.cpp:757
void setMiddleName(const QString &)
Sets the middle name.
Definition QXmppVCardIq.cpp:745
void setEmail(const QString &)
Sets the email address.
Definition QXmppVCardIq.cpp:694
QList< QXmppVCardPhone > phones() const
Returns the phone numbers.
Definition QXmppVCardIq.cpp:843
void setBirthday(const QDate &birthday)
Sets the date of birth of the individual associated with the vCard.
Definition QXmppVCardIq.cpp:666
void setPhotoType(const QString &type)
Sets the photo's MIME type.
Definition QXmppVCardIq.cpp:813
QString description() const
Returns the free-form descriptive text.
Definition QXmppVCardIq.cpp:672
void setAddresses(const QList< QXmppVCardAddress > &addresses)
Sets the addresses.
Definition QXmppVCardIq.cpp:825
void setLastName(const QString &)
Sets the last name.
Definition QXmppVCardIq.cpp:733
QList< QXmppVCardAddress > addresses() const
Returns the addresses.
Definition QXmppVCardIq.cpp:819
void setEmails(const QList< QXmppVCardEmail > &emails)
Sets the e-mail addresses.
Definition QXmppVCardIq.cpp:837
void setPhones(const QList< QXmppVCardPhone > &phones)
Sets the phone numbers.
Definition QXmppVCardIq.cpp:849
Represents organization information in XMPP vCards.
Definition QXmppVCardIq.h:171
QString title() const
Returns the job title within the organization.
Definition QXmppVCardIq.cpp:550
QString role() const
Returns the job role within the organization.
Definition QXmppVCardIq.cpp:538
QString unit() const
Returns the organization unit (also known as department).
Definition QXmppVCardIq.cpp:526
void setRole(const QString &)
Sets the job role within the organization.
Definition QXmppVCardIq.cpp:544
void setTitle(const QString &)
Sets the job title within the organization.
Definition QXmppVCardIq.cpp:556
void setUnit(const QString &)
Sets the unit within the organization.
Definition QXmppVCardIq.cpp:532
QString organization() const
Returns the name of the organization.
Definition QXmppVCardIq.cpp:514
void setOrganization(const QString &)
Sets the organization name.
Definition QXmppVCardIq.cpp:520
QXmppVCardOrganization & operator=(const QXmppVCardOrganization &other)
Assigns other to this organization info.
Definition QXmppVCardIq.cpp:492
QXmppVCardOrganization()
Constructs an empty organization information.
Definition QXmppVCardIq.cpp:478
Represents a vCard phone number.
Definition QXmppVCardIq.h:120
void setNumber(const QString &number)
Sets the phone number.
Definition QXmppVCardIq.cpp:359
TypeFlag
Describes phone number types.
Definition QXmppVCardIq.h:123
Type type() const
Returns the phone number type, which is a combination of TypeFlag.
Definition QXmppVCardIq.cpp:365
QXmppVCardPhone & operator=(const QXmppVCardPhone &other)
Copy-assignment operator.
QString number() const
Returns the phone number.
Definition QXmppVCardIq.cpp:340
QXmppVCardPhone()
Constructs an empty phone number.
Definition QXmppVCardIq.cpp:326
QXmppVCardPhone(const QXmppVCardPhone &other)
Copy-constructor.
void setType(Type type)
Sets the phone number type, which is a combination of TypeFlag.
Definition QXmppVCardIq.cpp:371