diff options
| author | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-08-31 12:33:40 +0000 |
|---|---|---|
| committer | Manjeet Dahiya <manjeetdahiya@gmail.com> | 2010-08-31 12:33:40 +0000 |
| commit | e520b60cedad1ca852504aa01b1a39b2dac18119 (patch) | |
| tree | 7ec3fec6b719ff6406469f341b0bcc01fb13f845 /src | |
| parent | 470c8e8ff6b54f47c0541add7567ac3c0276c798 (diff) | |
| download | qxmpp-e520b60cedad1ca852504aa01b1a39b2dac18119.tar.gz | |
reverting the removal of deprecated functions
Diffstat (limited to 'src')
| -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&); |
