Loading...
Searching...
No Matches
QXmppPubSubSubAuthorization.h
// SPDX-FileCopyrightText: 2020 Linus Jahn <lnj@kaidan.im>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPPUBSUBSUBAUTHORIZATION_H
#define QXMPPPUBSUBSUBAUTHORIZATION_H
#include "QXmppDataFormBase.h"
class QXmppPubSubSubAuthorizationPrivate;
class QXMPP_EXPORT QXmppPubSubSubAuthorization : public QXmppExtensibleDataFormBase
{
public:
static std::optional<QXmppPubSubSubAuthorization> fromDataForm(const QXmppDataForm &);
QXmppPubSubSubAuthorization();
QXmppPubSubSubAuthorization(const QXmppPubSubSubAuthorization &);
QXmppPubSubSubAuthorization(QXmppPubSubSubAuthorization &&);
~QXmppPubSubSubAuthorization();
QXmppPubSubSubAuthorization &operator=(const QXmppPubSubSubAuthorization &);
QXmppPubSubSubAuthorization &operator=(QXmppPubSubSubAuthorization &&);
std::optional<bool> allowSubscription() const;
void setAllowSubscription(std::optional<bool> allowSubscription);
QString node() const;
void setNode(const QString &node);
QString subscriberJid() const;
void setSubscriberJid(const QString &subscriberJid);
QString subid() const;
void setSubid(const QString &subid);
protected:
QString formType() const override;
bool parseField(const QXmppDataForm::Field &) override;
void serializeForm(QXmppDataForm &) const override;
private:
QSharedDataPointer<QXmppPubSubSubAuthorizationPrivate> d;
};
#endif // QXMPPPUBSUBSUBAUTHORIZATION_H
QXmppDataFormBase::fromDataForm
static bool fromDataForm(const QXmppDataForm &form, QXmppDataFormBase &parent)
Definition QXmppDataFormBase.cpp:55
QXmppDataFormBase::formType
virtual QString formType() const =0
QXmppDataForm::Field
Definition QXmppDataForm.h:93
QXmppDataForm
Definition QXmppDataForm.h:28
QXmppExtensibleDataFormBase::serializeForm
void serializeForm(QXmppDataForm &) const override
Definition QXmppDataFormBase.cpp:204
QXmppExtensibleDataFormBase::parseField
virtual bool parseField(const QXmppDataForm::Field &)
Definition QXmppDataFormBase.cpp:215
QXmppPubSubSubAuthorization::setSubscriberJid
void setSubscriberJid(const QString &subscriberJid)
Definition QXmppPubSubSubAuthorization.cpp:104
QXmppPubSubSubAuthorization::QXmppPubSubSubAuthorization
QXmppPubSubSubAuthorization(const QXmppPubSubSubAuthorization &)
Copy-constructor.
QXmppPubSubSubAuthorization::subscriberJid
QString subscriberJid() const
Definition QXmppPubSubSubAuthorization.cpp:96
QXmppPubSubSubAuthorization::operator=
QXmppPubSubSubAuthorization & operator=(const QXmppPubSubSubAuthorization &)
Assignment operator.
QXmppPubSubSubAuthorization::operator=
QXmppPubSubSubAuthorization & operator=(QXmppPubSubSubAuthorization &&)
Move-assignment operator.
QXmppPubSubSubAuthorization::setAllowSubscription
void setAllowSubscription(std::optional< bool > allowSubscription)
Definition QXmppPubSubSubAuthorization.cpp:72
QXmppPubSubSubAuthorization::QXmppPubSubSubAuthorization
QXmppPubSubSubAuthorization(QXmppPubSubSubAuthorization &&)
Move-constructor.
QXmppPubSubSubAuthorization::node
QString node() const
Definition QXmppPubSubSubAuthorization.cpp:80
QXmppPubSubSubAuthorization::setNode
void setNode(const QString &node)
Definition QXmppPubSubSubAuthorization.cpp:88
QXmppPubSubSubAuthorization::subid
QString subid() const
Definition QXmppPubSubSubAuthorization.cpp:112
QXmppPubSubSubAuthorization::allowSubscription
std::optional< bool > allowSubscription() const
Definition QXmppPubSubSubAuthorization.cpp:64
QXmppPubSubSubAuthorization::setSubid
void setSubid(const QString &subid)
Definition QXmppPubSubSubAuthorization.cpp:120