QXmppPushEnableIq Class
This class represents an IQ to enable or disablepush notifications on the user server. More...
| Header: | #include <QXmppPushEnableIq.h> |
| Since: | QXmpp 1.3 |
| Inherits: | QXmppIq |
- List of all members, including inherited members
- QXmppPushEnableIq is part of Stanzas.
Public Types
| enum | Mode { Enable, Disable } |
Public Functions
| QXmppPushEnableIq(const QXmppPushEnableIq &) | |
| QXmppPushEnableIq(QXmppPushEnableIq &&) | |
| QXmppDataForm | dataForm() const |
| QString | jid() const |
| QXmppPushEnableIq::Mode | mode() |
| QString | node() const |
| void | setDataForm(const QXmppDataForm &form) |
| void | setJid(const QString &jid) |
| void | setMode(QXmppPushEnableIq::Mode mode) |
| void | setNode(const QString &node) |
| QXmppPushEnableIq & | operator=(QXmppPushEnableIq &&) |
| QXmppPushEnableIq & | operator=(const QXmppPushEnableIq &) |
Static Public Members
| bool | isPushEnableIq(const QDomElement &element) |
Detailed Description
Member Type Documentation
enum QXmppPushEnableIq::Mode
The Mode enum describes whether the IQ should enable or disable push notifications
| Constant | Value |
|---|---|
QXmppPushEnableIq::Enable | true |
QXmppPushEnableIq::Disable | false |
Member Function Documentation
QXmppPushEnableIq::QXmppPushEnableIq(const QXmppPushEnableIq &)
Default copy-constructor
QXmppPushEnableIq::QXmppPushEnableIq(QXmppPushEnableIq &&)
Default move-constructor
QXmppDataForm QXmppPushEnableIq::dataForm() const
Returns the data form containing the publish options which the user server Should send to the app server.
It is only available for enable IQs.
See also setDataForm().
[static] bool QXmppPushEnableIq::isPushEnableIq(const QDomElement &element)
Returns true if a QDomElement is a push notification enable / disable IQ.
element.
QString QXmppPushEnableIq::jid() const
Returns the jid of the app server
See also setJid().
QXmppPushEnableIq::Mode QXmppPushEnableIq::mode()
Returns the mode
See also setMode().
QString QXmppPushEnableIq::node() const
Returns the pubsub node on the app server used by the IQ
See also setNode().
void QXmppPushEnableIq::setDataForm(const QXmppDataForm &form)
Sets the data form containing the publish options which the user server Should send to the app server.
It should only be set for enable IQs.
form.
See also dataForm().
void QXmppPushEnableIq::setJid(const QString &jid)
Sets the jid of the app server
See also jid().
void QXmppPushEnableIq::setMode(QXmppPushEnableIq::Mode mode)
Set whether the IQ should enable or disable push notifications
mode.
See also mode().
void QXmppPushEnableIq::setNode(const QString &node)
Set the pubsub note on the app server to be used by the IQ
node.
See also node().
QXmppPushEnableIq &QXmppPushEnableIq::operator=(QXmppPushEnableIq &&)
Default move-assignment operator
QXmppPushEnableIq &QXmppPushEnableIq::operator=(const QXmppPushEnableIq &)
Default assignment operator