From 742f672a580461271cbe25c5e87f42e9dc4c3ede Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Wed, 26 Mar 2014 15:49:57 +0100 Subject: Remove deprecated QXmppPresence::Status type --- src/base/QXmppPresence.h | 42 ------------------------------------------ 1 file changed, 42 deletions(-) (limited to 'src/base/QXmppPresence.h') diff --git a/src/base/QXmppPresence.h b/src/base/QXmppPresence.h index 1029ce5c..b58afb50 100644 --- a/src/base/QXmppPresence.h +++ b/src/base/QXmppPresence.h @@ -73,48 +73,6 @@ public: /// (empty photo element) and mere support for the protocol (empty update child). }; - /// \cond - // deprecated since 0.6.2 - class QXMPP_EXPORT Status - { - public: - /// This enum is used to describe an availability status. - enum Type - { - Online = 0, ///< The entity or resource is online. - Away, ///< The entity or resource is temporarily away. - XA, ///< The entity or resource is away for an extended period. - DND, ///< The entity or resource is busy ("Do Not Disturb"). - Chat, ///< The entity or resource is actively interested in chatting. - Invisible ///< obsolete XEP-0018: Invisible Presence - }; - - Status(QXmppPresence::Status::Type type = QXmppPresence::Status::Online, - const QString statusText = "", int priority = 0); - - QXmppPresence::Status::Type type() const; - void setType(QXmppPresence::Status::Type); - - QString statusText() const; - void setStatusText(const QString&); - - int priority() const; - void setPriority(int); - - void parse(const QDomElement &element); - void toXml(QXmlStreamWriter *writer) const; - - private: - QXmppPresence::Status::Type m_type; - QString m_statusText; - int m_priority; - }; - - QXmppPresence::Status Q_DECL_DEPRECATED &status(); - const QXmppPresence::Status Q_DECL_DEPRECATED &status() const; - void Q_DECL_DEPRECATED setStatus(const QXmppPresence::Status&); - /// \endcond - QXmppPresence(QXmppPresence::Type type = QXmppPresence::Available); QXmppPresence(const QXmppPresence &other); ~QXmppPresence(); -- cgit v1.2.3