14namespace QXmpp::Private {
18class QXmppVCardAddressPrivate;
19class QXmppVCardEmailPrivate;
20class QXmppVCardPhonePrivate;
21class QXmppVCardOrganizationPrivate;
22class QXmppVCardIqPrivate;
37 Q_DECLARE_FLAGS(Type, TypeFlag)
47 QString country()
const;
48 void setCountry(
const QString &country);
50 QString locality()
const;
51 void setLocality(
const QString &locality);
53 QString postcode()
const;
54 void setPostcode(
const QString &postcode);
56 QString region()
const;
57 void setRegion(
const QString ®ion);
59 QString street()
const;
60 void setStreet(
const QString &street);
63 void setType(Type type);
66 void parse(
const QDomElement &element);
67 void toXml(QXmlStreamWriter *stream)
const;
71 QSharedDataPointer<QXmppVCardAddressPrivate> d;
91 Q_DECLARE_FLAGS(Type, TypeFlag)
99 QString address()
const;
100 void setAddress(
const QString &address);
103 void setType(Type type);
106 void parse(
const QDomElement &element);
107 void toXml(QXmlStreamWriter *stream)
const;
111 QSharedDataPointer<QXmppVCardEmailPrivate> d;
139 Q_DECLARE_FLAGS(Type, TypeFlag)
147 QString number()
const;
148 void setNumber(
const QString &number);
151 void setType(Type type);
154 void parse(
const QDomElement &element);
155 void toXml(QXmlStreamWriter *stream)
const;
159 QSharedDataPointer<QXmppVCardPhonePrivate> d;
179 QString organization()
const;
180 void setOrganization(
const QString &);
182 QString unit()
const;
183 void setUnit(
const QString &);
185 QString title()
const;
186 void setTitle(
const QString &);
188 QString role()
const;
189 void setRole(
const QString &);
192 void parse(
const QDomElement &element);
193 void toXml(QXmlStreamWriter *stream)
const;
197 QSharedDataPointer<QXmppVCardOrganizationPrivate> d;
222 QDate birthday()
const;
223 void setBirthday(
const QDate &birthday);
225 QString description()
const;
226 void setDescription(
const QString &description);
228 QString email()
const;
229 void setEmail(
const QString &);
231 QString firstName()
const;
232 void setFirstName(
const QString &);
234 QString fullName()
const;
235 void setFullName(
const QString &);
237 QString lastName()
const;
238 void setLastName(
const QString &);
240 QString middleName()
const;
241 void setMiddleName(
const QString &);
243 QString nickName()
const;
244 void setNickName(
const QString &);
246 QByteArray photo()
const;
247 void setPhoto(
const QByteArray &);
249 QString photoType()
const;
250 void setPhotoType(
const QString &type);
253 void setUrl(
const QString &);
255 QList<QXmppVCardAddress> addresses()
const;
256 void setAddresses(
const QList<QXmppVCardAddress> &addresses);
258 QList<QXmppVCardEmail> emails()
const;
259 void setEmails(
const QList<QXmppVCardEmail> &emails);
261 QList<QXmppVCardPhone> phones()
const;
262 void setPhones(
const QList<QXmppVCardPhone> &phones);
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;
The QXmppIq class is the base class for all IQs.
Definition: QXmppIq.h:23
Represent a vCard address.
Definition: QXmppVCardIq.h:27
TypeFlag
Describes e-mail address types.
Definition: QXmppVCardIq.h:30
QXmppVCardAddress(const QXmppVCardAddress &other)
Copy-constructor.
QXmppVCardAddress(QXmppVCardAddress &&)
Move-constructor.
QXmppVCardAddress & operator=(const QXmppVCardAddress &other)
Assignment operator.
QXmppVCardAddress & operator=(QXmppVCardAddress &&)
Move-assignment operator.
Represents a vCard e-mail address.
Definition: QXmppVCardIq.h:80
TypeFlag
Describes e-mail address types.
Definition: QXmppVCardIq.h:83
QXmppVCardEmail(const QXmppVCardEmail &other)
Copy-constructor.
QXmppVCardEmail & operator=(const QXmppVCardEmail &other)
Copy-assignment operator.
Represents the XMPP vCard.
Definition: QXmppVCardIq.h:214
Represents organization information in XMPP vCards.
Definition: QXmppVCardIq.h:171
Represents a vCard phone number.
Definition: QXmppVCardIq.h:120
TypeFlag
Describes phone number types.
Definition: QXmppVCardIq.h:123
QXmppVCardPhone & operator=(const QXmppVCardPhone &other)
Copy-assignment operator.
QXmppVCardPhone(const QXmppVCardPhone &other)
Copy-constructor.