diff options
| -rw-r--r-- | src/QXmppVCard.cpp | 21 | ||||
| -rw-r--r-- | src/QXmppVCard.h | 9 |
2 files changed, 30 insertions, 0 deletions
diff --git a/src/QXmppVCard.cpp b/src/QXmppVCard.cpp index 73d6c21c..1ff181a4 100644 --- a/src/QXmppVCard.cpp +++ b/src/QXmppVCard.cpp @@ -271,3 +271,24 @@ void QXmppVCard::setPhoto(const QImage& image) } #endif +QString QXmppVCard::getFullName() const +{ + return m_fullName; +} + +QString QXmppVCard::getNickName() const +{ + return m_nickName; +} + +const QByteArray& QXmppVCard::getPhoto() const +{ + return m_photo; +} + +#ifndef QXMPP_NO_GUI +QImage QXmppVCard::getPhotoAsImage() const +{ + return photoAsImage(); +} +#endif diff --git a/src/QXmppVCard.h b/src/QXmppVCard.h index 133e027f..5f8b9d28 100644 --- a/src/QXmppVCard.h +++ b/src/QXmppVCard.h @@ -78,6 +78,15 @@ public: static bool isVCard(const QDomElement &element); +// deprecated accessors, use the form without "get" instead +// deprecated in release 0.2.0 + /// \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&); |
