QXmpp Version: 1.10.0
|
Public Member Functions | |
QXmppPubSubSubAuthorization (const QXmppPubSubSubAuthorization &) | |
Copy-constructor. | |
QXmppPubSubSubAuthorization (QXmppPubSubSubAuthorization &&) | |
Move-constructor. | |
QXmppPubSubSubAuthorization & | operator= (const QXmppPubSubSubAuthorization &) |
Assignment operator. | |
QXmppPubSubSubAuthorization & | operator= (QXmppPubSubSubAuthorization &&) |
Move-assignment operator. | |
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) |
Public Member Functions inherited from QXmppExtensibleDataFormBase | |
QList< QXmppDataForm::Field > | unknownFields () const |
void | setUnknownFields (const QList< QXmppDataForm::Field > &unknownFields) |
Public Member Functions inherited from QXmppDataFormBase | |
virtual QXmppDataForm | toDataForm () const |
Static Public Member Functions | |
static std::optional< QXmppPubSubSubAuthorization > | fromDataForm (const QXmppDataForm &) |
Protected Member Functions | |
QString | formType () const override |
bool | parseField (const QXmppDataForm::Field &) override |
void | serializeForm (QXmppDataForm &) const override |
Protected Member Functions inherited from QXmppExtensibleDataFormBase | |
void | parseForm (const QXmppDataForm &) override |
void | serializeForm (QXmppDataForm &) const override |
virtual bool | parseField (const QXmppDataForm::Field &) |
Protected Member Functions inherited from QXmppDataFormBase | |
virtual QString | formType () const =0 |
virtual void | parseForm (const QXmppDataForm &)=0 |
virtual void | serializeForm (QXmppDataForm &) const =0 |
std::optional< quint32 > | parseUInt (const QVariant &variant) |
std::optional< quint64 > | parseULongLong (const QVariant &variant) |
std::optional< bool > | parseBool (const QVariant &variant) |
Additional Inherited Members | |
Static Protected Member Functions inherited from QXmppDataFormBase | |
static bool | fromDataForm (const QXmppDataForm &form, QXmppDataFormBase &parent) |
template<typename T > | |
static void | serializeValue (QXmppDataForm &form, QXmppDataForm::Field::Type type, const QString &name, const T &value) |
template<typename T > | |
static void | serializeNullable (QXmppDataForm &form, QXmppDataForm::Field::Type type, QStringView name, const T &value) |
template<typename T > | |
static void | serializeEmptyable (QXmppDataForm &form, QXmppDataForm::Field::Type type, QStringView name, const T &value) |
template<typename T , typename ValueConverter = T (*)(T)> | |
static void | serializeOptional (QXmppDataForm &form, QXmppDataForm::Field::Type type, QStringView name, const std::optional< T > &optional, ValueConverter convert=[](T a) { return a;}) |
template<typename T > | |
static void | serializeOptionalNumber (QXmppDataForm &form, QXmppDataForm::Field::Type type, QStringView name, std::optional< T > optional) |
static void | serializeDatetime (QXmppDataForm &form, const QString &name, const QDateTime &datetime, QXmppDataForm::Field::Type type=QXmppDataForm::Field::TextSingleField) |
This class represents a PubSub subscribe authorization data form.
std::optional< bool > QXmppPubSubSubAuthorization::allowSubscription | ( | ) | const |
Returns whether the subscription is allowed.
|
overrideprotectedvirtual |
Returns the 'FORM_TYPE' value of the parsed form.
Implements QXmppDataFormBase.
|
static |
Tries to parse a PubSub subscribe authorization form from a plain data form.
QString QXmppPubSubSubAuthorization::node | ( | ) | const |
Returns the node name of the relevant node.
|
overrideprotectedvirtual |
Returns true if a field has been parsed.
Should be reimplemented to do actual parsing. All fields that can't be parsed end up as unknownFields().
Reimplemented from QXmppExtensibleDataFormBase.
|
overrideprotectedvirtual |
This is called the object is serialized to a QXmppDataForm. You need to create a new QXmppDataForm and serialize all fields and values.
Reimplemented from QXmppExtensibleDataFormBase.
void QXmppPubSubSubAuthorization::setAllowSubscription | ( | std::optional< bool > | allowSubscription | ) |
Sets whether the subscription is allowed.
void QXmppPubSubSubAuthorization::setNode | ( | const QString & | node | ) |
Sets the node name of the relevant node.
void QXmppPubSubSubAuthorization::setSubid | ( | const QString & | subid | ) |
Sets the subscription ID associated with the subscription request.
void QXmppPubSubSubAuthorization::setSubscriberJid | ( | const QString & | subscriberJid | ) |
Sets the JID of the user requesting to subscribe.
QString QXmppPubSubSubAuthorization::subid | ( | ) | const |
Returns the subscription ID associated with the subscription request.
QString QXmppPubSubSubAuthorization::subscriberJid | ( | ) | const |
Returns the JID of the user requesting to subscribe.