diff options
| author | Linus Jahn <lnj@kaidan.im> | 2019-09-22 15:42:48 +0200 |
|---|---|---|
| committer | LNJ <lnj@kaidan.im> | 2020-01-13 16:50:04 +0100 |
| commit | 411cf3b9c06ec6e0b9af1b57c3370dae4640d460 (patch) | |
| tree | bcbcbce8d269a5f7a2524c03925fc11680b3c311 /src/base/QXmppRegisterIq.h | |
| parent | 81b590545c590840f99fa5a96460726cb16db88a (diff) | |
| download | qxmpp-411cf3b9c06ec6e0b9af1b57c3370dae4640d460.tar.gz | |
QXmppRegisterIq: Add registerType for registered/remove
Diffstat (limited to 'src/base/QXmppRegisterIq.h')
| -rw-r--r-- | src/base/QXmppRegisterIq.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/base/QXmppRegisterIq.h b/src/base/QXmppRegisterIq.h index 91f0d873..52b4ffba 100644 --- a/src/base/QXmppRegisterIq.h +++ b/src/base/QXmppRegisterIq.h @@ -3,6 +3,7 @@ * * Author: * Jeremy LainĂ© + * Linus Jahn * * Source: * https://github.com/qxmpp-project/qxmpp @@ -27,8 +28,8 @@ #include "QXmppDataForm.h" #include "QXmppIq.h" -class QXmppRegisterIqPrivate; class QXmppBitsOfBinaryDataList; +class QXmppRegisterIqPrivate; /// \brief The QXmppRegisterIq class represents a registration IQ /// as defined by XEP-0077: In-Band Registration. @@ -40,6 +41,12 @@ class QXmppBitsOfBinaryDataList; class QXMPP_EXPORT QXmppRegisterIq : public QXmppIq { public: + enum RegisterType { + None, ///< No special register IQ. + Registered, ///< Used by the service to indicate that an account is already registered. + Remove ///< Used by the client to request account removal. + }; + QXmppRegisterIq(); QXmppRegisterIq(const QXmppRegisterIq &other); ~QXmppRegisterIq(); @@ -61,6 +68,9 @@ public: QString username() const; void setUsername(const QString &username); + RegisterType registerType() const; + void setRegisterType(const RegisterType ®isterType); + QXmppBitsOfBinaryDataList bitsOfBinaryData() const; QXmppBitsOfBinaryDataList &bitsOfBinaryData(); void setBitsOfBinaryData(const QXmppBitsOfBinaryDataList &bitsOfBinaryData); |
