diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-29 03:06:52 +0000 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2010-08-29 03:06:52 +0000 |
| commit | 179c3b8f309907d7178b16582389579d1da5d0cb (patch) | |
| tree | 752e8d0eda58236fc8a0c4ae8374677af3114e53 /src/QXmppVCard.h | |
| parent | 0be5a87d0dd2cadf1d5a84dcd3b272bf6ac6e67c (diff) | |
| download | qxmpp-179c3b8f309907d7178b16582389579d1da5d0cb.tar.gz | |
clean up and test vCard code
Diffstat (limited to 'src/QXmppVCard.h')
| -rw-r--r-- | src/QXmppVCard.h | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/src/QXmppVCard.h b/src/QXmppVCard.h index 6c525ebf..133e027f 100644 --- a/src/QXmppVCard.h +++ b/src/QXmppVCard.h @@ -56,8 +56,11 @@ public: void setNickName(const QString&); void setUrl(const QString&); + QByteArray photo() const; void setPhoto(const QByteArray&); - void setPhoto(const QImage&); + + QString photoType() const; + void setPhotoType(const QString &type); QDate birthday() const; QString email() const; @@ -68,19 +71,13 @@ public: QString nickName() const; QString url() const; +#ifndef QXMPP_NO_GUI QImage photoAsImage() const; - const QByteArray& photo() const; + void setPhoto(const QImage&); +#endif static bool isVCard(const QDomElement &element); - // deprecated accessors, use the form without "get" instead - /// \cond - QString Q_DECL_DEPRECATED getFullName() const; - QString Q_DECL_DEPRECATED getNickName() const; - QImage Q_DECL_DEPRECATED getPhotoAsImage() const; - const QByteArray Q_DECL_DEPRECATED & getPhoto() const; - /// \endcond - protected: /// \cond void parseElementFromChild(const QDomElement&); @@ -99,6 +96,7 @@ private: // not as 64 base QByteArray m_photo; + QString m_photoType; }; #endif // QXMPPVCARD_H |
