diff options
| author | Jeremy Lainé <jeremy.laine@m4x.org> | 2014-03-26 15:49:57 +0100 |
|---|---|---|
| committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2014-03-26 15:49:57 +0100 |
| commit | 742f672a580461271cbe25c5e87f42e9dc4c3ede (patch) | |
| tree | a4ef3cdf1d1613b8844184f9aad04be8acc66cad /src/base/QXmppPresence.h | |
| parent | ab5bdff45a304730ba5194e328bfc62267e366dc (diff) | |
| download | qxmpp-742f672a580461271cbe25c5e87f42e9dc4c3ede.tar.gz | |
Remove deprecated QXmppPresence::Status type
Diffstat (limited to 'src/base/QXmppPresence.h')
| -rw-r--r-- | src/base/QXmppPresence.h | 42 |
1 files changed, 0 insertions, 42 deletions
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(); |
