diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-03-10 08:14:25 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-03-10 08:14:25 +0000 |
| commit | 519d53a7e8ce3057a3cacc4b5dd6737efb17f5d0 (patch) | |
| tree | 06d757d2d2059630172cea34fbbede956060765e /source/QXmppVCard.h | |
| parent | f6c2c215ab8bb438b01d44a99feaf3c0aaf1e9b7 (diff) | |
| download | qxmpp-519d53a7e8ce3057a3cacc4b5dd6737efb17f5d0.tar.gz | |
add support for first/middle/last name in vCards
Diffstat (limited to 'source/QXmppVCard.h')
| -rw-r--r-- | source/QXmppVCard.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/source/QXmppVCard.h b/source/QXmppVCard.h index 03e617ed..08a4b456 100644 --- a/source/QXmppVCard.h +++ b/source/QXmppVCard.h @@ -36,8 +36,10 @@ class QXmppVCard : public QXmppIq public: QXmppVCard(const QString& bareJid = ""); + void setFirstName(const QString&); void setFullName(const QString&); - + void setLastName(const QString&); + void setMiddleName(const QString&); void setNickName(const QString&); void setPhoto(const QByteArray&); @@ -45,8 +47,12 @@ public: void parse(const QDomElement&); + QString firstName() const; QString fullName() const; + QString lastName() const; + QString middleName() const; QString nickName() const; + QImage photoAsImage() const; const QByteArray& photo() const; @@ -61,7 +67,10 @@ public: private: void toXmlElementFromChild(QXmlStreamWriter *writer) const; + QString m_firstName; QString m_fullName; + QString m_lastName; + QString m_middleName; QString m_nickName; // not as 64 base |
