|
QXmpp Version: 1.14.3
|
Public Types | |
| enum | EventType : uint8_t { Configuration , Delete , Items , Retract , Purge , Subscription } |
| This enum describes a message type. | |
Public Member Functions | |
| QXmppPubSubEventBase (EventType=Items, const QString &node={}) | |
| QXmppPubSubEventBase (const QXmppPubSubEventBase &other) | |
| Default copy-constructor. | |
| QXmppPubSubEventBase (QXmppPubSubEventBase &&) | |
| Default move-constructor. | |
| QXmppPubSubEventBase & | operator= (const QXmppPubSubEventBase &other) |
| Default assignment operator. | |
| QXmppPubSubEventBase & | operator= (QXmppPubSubEventBase &&) |
| Default move-assignment operator. | |
| EventType | eventType () const |
| void | setEventType (EventType) |
| QString | node () const |
| void | setNode (const QString &node) |
| QStringList | retractIds () const |
| void | setRetractIds (const QStringList &) |
| QString | redirectUri () const |
| void | setRedirectUri (const QString &) |
| std::optional< QXmppPubSubSubscription > | subscription () const |
| void | setSubscription (const std::optional< QXmppPubSubSubscription > &subscription) |
| std::optional< QXmppDataForm > | configurationForm () const |
| void | setConfigurationForm (const std::optional< QXmppDataForm > &configurationForm) |
| Public Member Functions inherited from QXmppStanza | |
| QXmppStanza (const QString &from=QString(), const QString &to=QString()) | |
| QXmppStanza (const QXmppStanza &other) | |
| Constructs a copy of other. | |
| QXmppStanza (QXmppStanza &&) | |
| Move constructor. | |
| ~QXmppStanza () override | |
| Destroys a QXmppStanza. | |
| QXmppStanza & | operator= (const QXmppStanza &other) |
| Assigns other to this stanza. | |
| QXmppStanza & | operator= (QXmppStanza &&) |
| Move-assignment operator. | |
| QString | to () const |
| void | setTo (const QString &) |
| QString | from () const |
| void | setFrom (const QString &) |
| QString | id () const |
| void | setId (const QString &) |
| QString | lang () const |
| void | setLang (const QString &) |
| QXmppStanza::Error | error () const |
| std::optional< Error > | errorOptional () const |
| void | setError (const QXmppStanza::Error &error) |
| void | setError (const std::optional< Error > &error) |
| QXmppElementList | extensions () const |
| void | setExtensions (const QXmppElementList &elements) |
| QList< QXmppExtendedAddress > | extendedAddresses () const |
| void | setExtendedAddresses (const QList< QXmppExtendedAddress > &extendedAddresses) |
| std::optional< QXmppE2eeMetadata > | e2eeMetadata () const |
| void | setE2eeMetadata (const std::optional< QXmppE2eeMetadata > &e2eeMetadata) |
| Public Member Functions inherited from QXmppNonza | |
| virtual void | parse (const QDomElement &)=0 |
| virtual void | toXml (QXmlStreamWriter *writer) const =0 |
Additional Inherited Members |
The QXmppPubSubEventBase class is an abstract class used for parsing of generic PubSub event notifications as defined by XEP-0060: Publish- Subscribe.
This class cannot be used directly. For a full-featured access to the event notifications, please use the QXmppPubSubEvent class.
| enum QXmppPubSubEventBase::EventType : uint8_t |
Enumeration of different event types
| QXmppPubSubEventBase::QXmppPubSubEventBase | ( | EventType | type = Items, |
| const QString & | node = {} ) |
Constructs a PubSub event.
| std::optional< QXmppDataForm > QXmppPubSubEventBase::configurationForm | ( | ) | const |
Returns a configuration data form if the event contains one.
| QXmppPubSubEventBase::EventType QXmppPubSubEventBase::eventType | ( | ) | const |
Returns the event type of the PubSub event.
| QString QXmppPubSubEventBase::node | ( | ) | const |
Returns the name of the event's node.
This does not work with Subscription events. In those cases you need to get the node of the subscription.
| QString QXmppPubSubEventBase::redirectUri | ( | ) | const |
Returns the redirect URI to the new node.
This can be set for delete notifications to inform subscribers of the new node. Inclusion of this is of course optional.
| QStringList QXmppPubSubEventBase::retractIds | ( | ) | const |
Returns the item IDs that have been retracted.
This is only used for the Items event type.
| void QXmppPubSubEventBase::setConfigurationForm | ( | const std::optional< QXmppDataForm > & | configurationForm | ) |
Sets a configuration data form (or clears it with std::nullopt).
| void QXmppPubSubEventBase::setEventType | ( | EventType | type | ) |
Sets the event type of the PubSub event.
| void QXmppPubSubEventBase::setNode | ( | const QString & | node | ) |
Sets the name of the event's node.
This does not work with Subscription events. In those cases you need to set the node of the subscription.
| void QXmppPubSubEventBase::setRedirectUri | ( | const QString & | redirectUri | ) |
Sets the redirect URI to the new node.
This can be set for delete notifications to inform subscribers of the new node. Inclusion of this is of course optional.
| void QXmppPubSubEventBase::setRetractIds | ( | const QStringList & | retractIds | ) |
Sets the item IDs that have been retracted.
This is only used for the Items event type.
| void QXmppPubSubEventBase::setSubscription | ( | const std::optional< QXmppPubSubSubscription > & | subscription | ) |
Sets the subscription in case of a Subscription event.
| std::optional< QXmppPubSubSubscription > QXmppPubSubEventBase::subscription | ( | ) | const |
Returns the subscription in case of a Subscription event.