6#ifndef QXMPPREGISTERIQ_H
7#define QXMPPREGISTERIQ_H
9#include "QXmppDataForm.h"
13class QXmppRegisterIqPrivate;
33 static QXmppRegisterIq createChangePasswordRequest(
const QString &username,
const QString &newPassword,
const QString &to = {});
34 static QXmppRegisterIq createUnregistrationRequest(
const QString &to = {});
36 QString email()
const;
37 void setEmail(
const QString &email);
42 QString instructions()
const;
43 void setInstructions(
const QString &instructions);
45 QString password()
const;
46 void setPassword(
const QString &username);
48 QString username()
const;
49 void setUsername(
const QString &username);
51 bool isRegistered()
const;
52 void setIsRegistered(
bool isRegistered);
54 bool isRemove()
const;
55 void setIsRemove(
bool isRemove);
61 QString outOfBandUrl()
const;
62 void setOutOfBandUrl(
const QString &outOfBandUrl);
65 static bool isRegisterIq(
const QDomElement &element);
70 void parseElementFromChild(
const QDomElement &element)
override;
71 void toXmlElementFromChild(QXmlStreamWriter *writer)
const override;
75 QSharedDataPointer<QXmppRegisterIqPrivate> d;
Definition QXmppBitsOfBinaryDataList.h:16
The QXmppIq class is the base class for all IQs.
Definition QXmppIq.h:23
The QXmppRegisterIq class represents a registration IQ as defined by XEP-0077: In-Band Registration.
Definition QXmppRegisterIq.h:23
QXmppRegisterIq & operator=(const QXmppRegisterIq &other)
Default assignment operator.
QXmppRegisterIq(QXmppRegisterIq &&)
Default move-constructor.
QXmppRegisterIq & operator=(QXmppRegisterIq &&)
Default move-assignment operator.
QXmppRegisterIq(const QXmppRegisterIq &other)
Default copy-constructor.