QXmpp Version: 1.5.6
|
Public Types | |
enum | EventType : uint8_t { Configuration , Delete , Items , Retract , Purge , Subscription } |
Public Types inherited from QXmppMessage | |
enum | Type { Error = 0 , Normal , Chat , GroupChat , Headline } |
This enum describes a message type. | |
enum | State { None = 0 , Active , Inactive , Gone , Composing , Paused } |
enum | Marker { NoMarker = 0 , Received , Displayed , Acknowledged } |
enum | Hint { NoPermanentStore = 1 << 0 , NoStore = 1 << 1 , NoCopy = 1 << 2 , Store = 1 << 3 } |
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 QXmppMessage | |
QXmppMessage (const QString &from=QString(), const QString &to=QString(), const QString &body=QString(), const QString &thread=QString()) | |
QXmppMessage (const QXmppMessage &other) | |
Constructs a copy of other. | |
QXmppMessage (QXmppMessage &&) | |
Move-constructor. | |
QXmppMessage & | operator= (const QXmppMessage &other) |
Assignment operator. | |
QXmppMessage & | operator= (QXmppMessage &&) |
Move-assignment operator. | |
bool | isXmppStanza () const override |
QString | body () const |
Returns the message's body. | |
void | setBody (const QString &) |
QString | e2eeFallbackBody () const |
void | setE2eeFallbackBody (const QString &fallbackBody) |
QString | subject () const |
Returns the message's subject. | |
void | setSubject (const QString &) |
QString | thread () const |
Returns the message's thread. | |
void | setThread (const QString &) |
QString | parentThread () const |
void | setParentThread (const QString &) |
QXmppMessage::Type | type () const |
Returns the message's type. | |
void | setType (QXmppMessage::Type) |
QString | outOfBandUrl () const |
void | setOutOfBandUrl (const QString &) |
QVector< QXmppOutOfBandUrl > | outOfBandUrls () const |
void | setOutOfBandUrls (const QVector< QXmppOutOfBandUrl > &urls) |
QString | xhtml () const |
void | setXhtml (const QString &xhtml) |
QXmppMessage::State | state () const |
void | setState (QXmppMessage::State) |
QDateTime | stamp () const |
void | setStamp (const QDateTime &stamp) |
bool | isReceiptRequested () const |
void | setReceiptRequested (bool requested) |
QString | receiptId () const |
void | setReceiptId (const QString &id) |
bool | isAttentionRequested () const |
void | setAttentionRequested (bool requested) |
QXmppBitsOfBinaryDataList | bitsOfBinaryData () const |
QXmppBitsOfBinaryDataList & | bitsOfBinaryData () |
void | setBitsOfBinaryData (const QXmppBitsOfBinaryDataList &bitsOfBinaryData) |
bool | isSlashMeCommand () const |
QString | slashMeCommandText () const |
QString | mucInvitationJid () const |
void | setMucInvitationJid (const QString &jid) |
QString | mucInvitationPassword () const |
void | setMucInvitationPassword (const QString &password) |
QString | mucInvitationReason () const |
void | setMucInvitationReason (const QString &reason) |
bool | isPrivate () const |
void | setPrivate (const bool) |
bool | isCarbonForwarded () const |
void | setCarbonForwarded (bool) |
QString | replaceId () const |
void | setReplaceId (const QString &) |
bool | isMarkable () const |
void | setMarkable (const bool) |
QString | markedId () const |
void | setMarkerId (const QString &) |
QString | markedThread () const |
void | setMarkedThread (const QString &) |
Marker | marker () const |
void | setMarker (const Marker) |
bool | hasHint (const Hint hint) const |
void | addHint (const Hint hint) |
void | removeHint (const Hint hint) |
void | removeAllHints () |
QString | stanzaId () const |
void | setStanzaId (const QString &id) |
QString | stanzaIdBy () const |
void | setStanzaIdBy (const QString &id) |
QString | originId () const |
void | setOriginId (const QString &id) |
QString | attachId () const |
void | setAttachId (const QString &) |
QString | mixUserJid () const |
void | setMixUserJid (const QString &) |
QString | mixUserNick () const |
void | setMixUserNick (const QString &) |
QXmpp::EncryptionMethod | encryptionMethod () const |
void | setEncryptionMethod (QXmpp::EncryptionMethod) |
QString | encryptionMethodNs () const |
void | setEncryptionMethodNs (const QString &) |
QString | encryptionName () const |
void | setEncryptionName (const QString &) |
bool | isSpoiler () const |
void | setIsSpoiler (bool) |
QString | spoilerHint () const |
void | setSpoilerHint (const QString &) |
std::optional< QXmppMixInvitation > | mixInvitation () const |
void | setMixInvitation (const std::optional< QXmppMixInvitation > &mixInvitation) |
bool | isFallback () const |
void | setIsFallback (bool isFallback) |
std::optional< QXmppTrustMessageElement > | trustMessageElement () const |
void | setTrustMessageElement (const std::optional< QXmppTrustMessageElement > &trustMessageElement) |
std::optional< QXmppMessageReaction > | reaction () const |
void | setReaction (const std::optional< QXmppMessageReaction > &reaction) |
const QVector< QXmppFileShare > & | sharedFiles () const |
void | setSharedFiles (const QVector< QXmppFileShare > &sharedFiles) |
void | parseExtensions (const QDomElement &element, QXmpp::SceMode sceMode) |
virtual bool | parseExtension (const QDomElement &element, QXmpp::SceMode) |
virtual void | serializeExtensions (QXmlStreamWriter *writer, QXmpp::SceMode, const QString &baseNamespace={}) const |
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. | |
virtual | ~QXmppStanza () |
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 | |
Static Public Member Functions inherited from QXmppMessage | |
static bool | isSlashMeCommand (const QString &body) |
static QString | slashMeCommandText (const QString &body) |
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.