Loading...
Searching...
No Matches
QXmppPushEnableIq.h
// SPDX-FileCopyrightText: 2020 Robert Märkisch <zatrox@kaidan.im>
// SPDX-FileCopyrightText: 2020 Linus Jahn <lnj@kaidan.im>
// SPDX-FileCopyrightText: 2020 Jonah Brüchert <jbb@kaidan.im>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPPUSHENABLEIQ_H
#define QXMPPPUSHENABLEIQ_H
#include <QXmppIq.h>
class QXmppPushEnableIqPrivate;
class QXmppDataForm;
class QXMPP_EXPORT QXmppPushEnableIq : public QXmppIq
{
public:
QXmppPushEnableIq();
QXmppPushEnableIq(const QXmppPushEnableIq &);
QXmppPushEnableIq(QXmppPushEnableIq &&);
~QXmppPushEnableIq() override;
QXmppPushEnableIq &operator=(const QXmppPushEnableIq &);
QXmppPushEnableIq &operator=(QXmppPushEnableIq &&);
enum Mode : bool {
Enable = true,
Disable = false
};
QString jid() const;
void setJid(const QString &jid);
QString node() const;
void setNode(const QString &node);
void setMode(Mode mode);
Mode mode();
QXmppDataForm dataForm() const;
void setDataForm(const QXmppDataForm &form);
static bool isPushEnableIq(const QDomElement &element);
protected:
void parseElementFromChild(const QDomElement &element) override;
void toXmlElementFromChild(QXmlStreamWriter *writer) const override;
private:
QSharedDataPointer<QXmppPushEnableIqPrivate> d;
};
#endif // QXMPPPUSHENABLEIQ_H
QXmppDataForm
Definition QXmppDataForm.h:27
QXmppIq
The QXmppIq class is the base class for all IQs.
Definition QXmppIq.h:23
QXmppPushEnableIq
This class represents an IQ to enable or disablepush notifications on the user server.
Definition QXmppPushEnableIq.h:24
QXmppPushEnableIq::QXmppPushEnableIq
QXmppPushEnableIq(const QXmppPushEnableIq &)
Default copy-constructor.
QXmppPushEnableIq::operator=
QXmppPushEnableIq & operator=(const QXmppPushEnableIq &)
Default assignment operator.
QXmppPushEnableIq::QXmppPushEnableIq
QXmppPushEnableIq(QXmppPushEnableIq &&)
Default move-constructor.
QXmppPushEnableIq::Mode
Mode
The Mode enum describes whether the IQ should enable or disable push notifications.
Definition QXmppPushEnableIq.h:37
QXmppPushEnableIq::operator=
QXmppPushEnableIq & operator=(QXmppPushEnableIq &&)
Default move-assignment operator.