QXmpp Version: 1.10.0
|
The QXmppPubSubManager aims to provide publish-subscribe functionality as specified in XEP-0060: Publish-Subscribe (PubSub). More...
Classes | |
struct | InvalidServiceType |
Public Types | |
enum | ServiceType { PubSubOrPep , PubSub , Pep } |
enum | StandardItemId { Current } |
using | Result = std::variant< QXmpp::Success, QXmppError > |
using | FeaturesResult = std::variant< QVector< QString >, InvalidServiceType, QXmppError > |
using | NodesResult = std::variant< QVector< QString >, QXmppError > |
using | InstantNodeResult = std::variant< QString, QXmppError > |
template<typename T > | |
using | ItemResult = std::variant< T, QXmppError > |
template<typename T > | |
using | ItemsResult = std::variant< Items< T >, QXmppError > |
using | ItemIdsResult = std::variant< QVector< QString >, QXmppError > |
using | PublishItemResult = std::variant< QString, QXmppError > |
using | PublishItemsResult = std::variant< QVector< QString >, QXmppError > |
using | SubscriptionsResult = std::variant< QVector< QXmppPubSubSubscription >, QXmppError > |
using | AffiliationsResult = std::variant< QVector< QXmppPubSubAffiliation >, QXmppError > |
using | OptionsResult = std::variant< QXmppPubSubSubscribeOptions, QXmppError > |
using | NodeConfigResult = std::variant< QXmppPubSubNodeConfig, QXmppError > |
Public Member Functions | |
QXmppPubSubManager () | |
~QXmppPubSubManager () | |
QXmppTask< NodesResult > | requestNodes (const QString &jid) |
QXmppTask< Result > | createNode (const QString &jid, const QString &nodeName) |
QXmppTask< Result > | createNode (const QString &jid, const QString &nodeName, const QXmppPubSubNodeConfig &config) |
QXmppTask< InstantNodeResult > | createInstantNode (const QString &jid) |
QXmppTask< InstantNodeResult > | createInstantNode (const QString &jid, const QXmppPubSubNodeConfig &config) |
QXmppTask< Result > | deleteNode (const QString &jid, const QString &nodeName) |
QXmppTask< ItemIdsResult > | requestItemIds (const QString &serviceJid, const QString &nodeName) |
template<typename T = QXmppPubSubBaseItem> | |
QXmppTask< ItemResult< T > > | requestItem (const QString &jid, const QString &nodeName, const QString &itemId) |
template<typename T = QXmppPubSubBaseItem> | |
QXmppTask< ItemResult< T > > | requestItem (const QString &jid, const QString &nodeName, StandardItemId itemId) |
template<typename T = QXmppPubSubBaseItem> | |
QXmppTask< ItemsResult< T > > | requestItems (const QString &jid, const QString &nodeName) |
template<typename T = QXmppPubSubBaseItem> | |
QXmppTask< ItemsResult< T > > | requestItems (const QString &jid, const QString &nodeName, const QStringList &itemIds) |
template<typename T > | |
QXmppTask< PublishItemResult > | publishItem (const QString &jid, const QString &nodeName, const T &item) |
template<typename T > | |
QXmppTask< PublishItemResult > | publishItem (const QString &jid, const QString &nodeName, const T &item, const QXmppPubSubPublishOptions &publishOptions) |
template<typename T > | |
QXmppTask< PublishItemsResult > | publishItems (const QString &jid, const QString &nodeName, const QVector< T > &items) |
template<typename T > | |
QXmppTask< PublishItemsResult > | publishItems (const QString &jid, const QString &nodeName, const QVector< T > &items, const QXmppPubSubPublishOptions &publishOptions) |
QXmppTask< Result > | retractItem (const QString &jid, const QString &nodeName, const QString &itemId) |
QXmppTask< Result > | retractItem (const QString &jid, const QString &nodeName, StandardItemId itemId) |
QXmppTask< Result > | purgeItems (const QString &jid, const QString &nodeName) |
QXmppTask< SubscriptionsResult > | requestSubscriptions (const QString &jid) |
QXmppTask< SubscriptionsResult > | requestSubscriptions (const QString &jid, const QString &nodeName) |
QXmppTask< AffiliationsResult > | requestNodeAffiliations (const QString &jid, const QString &nodeName) |
QXmppTask< AffiliationsResult > | requestAffiliations (const QString &jid) |
QXmppTask< AffiliationsResult > | requestAffiliations (const QString &jid, const QString &nodeName) |
QXmppTask< OptionsResult > | requestSubscribeOptions (const QString &service, const QString &nodeName) |
QXmppTask< OptionsResult > | requestSubscribeOptions (const QString &service, const QString &nodeName, const QString &subscriberJid) |
QXmppTask< Result > | setSubscribeOptions (const QString &service, const QString &nodeName, const QXmppPubSubSubscribeOptions &options) |
QXmppTask< Result > | setSubscribeOptions (const QString &service, const QString &nodeName, const QXmppPubSubSubscribeOptions &options, const QString &subscriberJid) |
QXmppTask< NodeConfigResult > | requestNodeConfiguration (const QString &service, const QString &nodeName) |
QXmppTask< Result > | configureNode (const QString &service, const QString &nodeName, const QXmppPubSubNodeConfig &config) |
QXmppTask< Result > | cancelNodeConfiguration (const QString &service, const QString &nodeName) |
QXmppTask< Result > | subscribeToNode (const QString &serviceJid, const QString &nodeName, const QString &subscriberJid) |
QXmppTask< Result > | unsubscribeFromNode (const QString &serviceJid, const QString &nodeName, const QString &subscriberJid) |
QXmppTask< NodesResult > | requestOwnPepNodes () |
QXmppTask< Result > | createOwnPepNode (const QString &nodeName) |
QXmppTask< Result > | createOwnPepNode (const QString &nodeName, const QXmppPubSubNodeConfig &config) |
QXmppTask< Result > | deleteOwnPepNode (const QString &nodeName) |
template<typename T = QXmppPubSubBaseItem> | |
QXmppTask< ItemResult< T > > | requestOwnPepItem (const QString &nodeName, const QString &itemId) |
template<typename T = QXmppPubSubBaseItem> | |
QXmppTask< ItemResult< T > > | requestOwnPepItem (const QString &nodeName, StandardItemId itemId) |
template<typename T = QXmppPubSubBaseItem> | |
QXmppTask< ItemsResult< T > > | requestOwnPepItems (const QString &nodeName) |
QXmppTask< ItemIdsResult > | requestOwnPepItemIds (const QString &nodeName) |
template<typename T > | |
QXmppTask< PublishItemResult > | publishOwnPepItem (const QString &nodeName, const T &item, const QXmppPubSubPublishOptions &publishOptions) |
template<typename T > | |
QXmppTask< PublishItemResult > | publishOwnPepItem (const QString &nodeName, const T &item) |
template<typename T > | |
QXmppTask< PublishItemsResult > | publishOwnPepItems (const QString &nodeName, const QVector< T > &items, const QXmppPubSubPublishOptions &publishOptions) |
template<typename T > | |
QXmppTask< PublishItemsResult > | publishOwnPepItems (const QString &nodeName, const QVector< T > &items) |
QXmppTask< Result > | retractOwnPepItem (const QString &nodeName, const QString &itemId) |
QXmppTask< Result > | retractOwnPepItem (const QString &nodeName, StandardItemId itemId) |
QXmppTask< Result > | purgeOwnPepItems (const QString &nodeName) |
QXmppTask< NodeConfigResult > | requestOwnPepNodeConfiguration (const QString &nodeName) |
QXmppTask< Result > | configureOwnPepNode (const QString &nodeName, const QXmppPubSubNodeConfig &config) |
QXmppTask< Result > | cancelOwnPepNodeConfiguration (const QString &nodeName) |
Public Member Functions inherited from QXmppClientExtension | |
QXmppClientExtension () | |
virtual QStringList | discoveryFeatures () const |
virtual QList< QXmppDiscoveryIq::Identity > | discoveryIdentities () const |
virtual bool | handleStanza (const QDomElement &stanza) |
You need to implement this method to process incoming XMPP stanzas. More... | |
virtual bool | handleStanza (const QDomElement &stanza, const std::optional< QXmppE2eeMetadata > &e2eeMetadata) |
You need to implement this method to process incoming XMPP stanzas. More... | |
Public Member Functions inherited from QXmppLoggable | |
QXmppLoggable (QObject *parent=nullptr) | |
Static Public Member Functions | |
static QString | standardItemIdToString (StandardItemId itemId) |
Friends | |
class | tst_QXmppPubSubManager |
class | QXmppOmemoManagerPrivate |
Additional Inherited Members | |
Signals inherited from QXmppLoggable | |
void | setGauge (const QString &gauge, double value) |
Sets the given gauge to value. | |
void | logMessage (QXmppLogger::MessageType type, const QString &msg) |
This signal is emitted to send logging messages. | |
void | updateCounter (const QString &counter, qint64 amount=1) |
Updates the given counter by amount. | |
Protected Member Functions inherited from QXmppClientExtension | |
QXmppClient * | client () const |
virtual void | setClient (QXmppClient *client) |
virtual void | onRegistered (QXmppClient *client) |
virtual void | onUnregistered (QXmppClient *client) |
void | injectIq (const QDomElement &element, const std::optional< QXmppE2eeMetadata > &e2eeMetadata) |
bool | injectMessage (QXmppMessage &&message) |
Protected Member Functions inherited from QXmppLoggable | |
void | debug (const QString &message) |
void | info (const QString &message) |
void | warning (const QString &message) |
void | logReceived (const QString &message) |
void | logSent (const QString &message) |
The QXmppPubSubManager aims to provide publish-subscribe functionality as specified in XEP-0060: Publish-Subscribe (PubSub).
However, it currently only supports a few PubSub use cases but all of the XEP-0060: Personal Eventing Protocol (PEP) ones. PEP allows a standard XMPP user account to function as a virtual PubSub service.
To make use of this manager, you need to instantiate it and load it into the QXmppClient instance as follows:
Contains the list of affiliations with the node(s) (QVector<QXmppPubSubAffiliation>) or the returned IQ error (QXmppStanza::Error).
Type containing service discovery features, InvalidServiceType if the service is not of the desired type or the returned IQ error (QXmppStanza::Error).
Contains the name of the new node (QString) or the returned IQ error (QXmppStanza::Error).
Contains all item IDs that have been found (QVector<QString>) or the returned IQ error (QXmppStanza::Error).
QXmppPubSubManager::ItemResult |
Contains the item if it has been found (std::optional<T>) or the returned IQ error (QXmppStanza::Error).
QXmppPubSubManager::ItemsResult |
Contains all items that have been found (QVector<T>) or the returned IQ error (QXmppStanza::Error).
Contains a node configuration (QXmppPubSubNodeConfig) or the returned IQ error (QXmppStanza::Error).
Type containing a list of node names or the returned IQ error (QXmppStanza::Error).
Contains the current subscribe options (QXmppPubSubSubscribeOptions) or the returned IQ error (QXmppStanza::Error).
Contains the ID of the item, if no ID was set in the request (QString) or the returned IQ error (QXmppStanza::Error).
Contains the IDs of the items, if no IDs were set in the request (QVector<QString>) or the returned IQ error (QXmppStanza::Error).
Result of a generic request without a return value. Contains Success in case everything went well. If the returned IQ contained an error a QXmppStanza::Error is reported.
Contains a list of active subscriptions (QVector<QXmppPubSubSubscription>) or the returned IQ error (QXmppStanza::Error).
QXmppPubSubManager::QXmppPubSubManager | ( | ) |
Default constructor.
QXmppPubSubManager::~QXmppPubSubManager | ( | ) |
Default destructor.
QXmppTask< QXmppPubSubManager::Result > QXmppPubSubManager::cancelNodeConfiguration | ( | const QString & | service, |
const QString & | nodeName | ||
) |
Cancels the configuration process and uses the default or exisiting configuration.
service | JID of the pubsub service |
nodeName | Name of the pubsub node on the service |
|
inline |
This is a convenience method equivalent to calling cancelNodeConfiguration() the current account's bare JID.
nodeName | Name of the pubsub node on the service |
QXmppTask< QXmppPubSubManager::Result > QXmppPubSubManager::configureNode | ( | const QString & | service, |
const QString & | nodeName, | ||
const QXmppPubSubNodeConfig & | config | ||
) |
Sets a node configuration.
Requires owner privileges. You can use requestNodeConfiguration() to receive a data form with all valid options and default values.
service | JID of the pubsub service |
nodeName | Name of the pubsub node on the service |
config |
|
inline |
Sets a node configuration.
This is a convenience method equivalent to calling configureNode() the current account's bare JID.
nodeName | Name of the pubsub node on the service |
config |
QXmppTask< QXmppPubSubManager::InstantNodeResult > QXmppPubSubManager::createInstantNode | ( | const QString & | jid | ) |
Creates an instant pubsub node with the default configuration.
The pubsub service automatically generates a random node name. On success it is returned via the QFuture.
jid | Jabber ID of the entity hosting the pubsub service |
auto QXmppPubSubManager::createInstantNode | ( | const QString & | jid, |
const QXmppPubSubNodeConfig & | config | ||
) |
Creates an instant pubsub node with a custom configuration.
The pubsub service automatically generates a random node name. On success it is returned via the QFuture.
jid | Jabber ID of the entity hosting the pubsub service |
config | The configuration for the node |
auto QXmppPubSubManager::createNode | ( | const QString & | jid, |
const QString & | nodeName | ||
) |
Creates an empty pubsub node with the default configuration.
Calling this before QXmppPubSubManager::publishItems is usually not necessary when publishing to a node for the first time if the service suppports the auto-create feature (Section 7.1.4 of XEP-0060).
jid | Jabber ID of the entity hosting the pubsub service |
nodeName | the name of the node to be created |
auto QXmppPubSubManager::createNode | ( | const QString & | jid, |
const QString & | nodeName, | ||
const QXmppPubSubNodeConfig & | config | ||
) |
Creates an empty pubsub node with a custom configuration.
Calling this before QXmppPubSubManager::publishItems is usually not necessary when publishing to a node for the first time if the service suppports the auto-create feature (Section 7.1.4 of XEP-0060).
jid | Jabber ID of the entity hosting the pubsub service |
nodeName | the name of the node to be created |
config | The configuration for the node |
Creates an empty PEP node with the default configuration.
This is a convenience method equivalent to calling QXmppPubSubManager::createNode on the current account's bare JID.
Calling this before QXmppPubSubManager::publishOwnPepItems is usually not necessary when publishing to a node for the first time if the service suppports the auto-create feature (Section 7.1.4 of XEP-0060).
nodeName | the name of the PEP node to be created |
|
inline |
Creates an empty PEP node with a custom configuration.
This is a convenience method equivalent to calling QXmppPubSubManager::createNode on the current account's bare JID.
Calling this before QXmppPubSubManager::publishOwnPepItems is usually not necessary when publishing to a node for the first time if the service suppports the auto-create feature (Section 7.1.4 of XEP-0060).
nodeName | the name of the PEP node to be created |
config | The configuration for the node |
auto QXmppPubSubManager::deleteNode | ( | const QString & | jid, |
const QString & | nodeName | ||
) |
Deletes a pubsub node.
jid | Jabber ID of the entity hosting the pubsub service |
nodeName | the name of the node to delete along with all of its items |
|
inline |
Deletes a PEP node.
This is a convenience method equivalent to calling QXmppPubSubManager::deleteNode on the current account's bare JID.
nodeName | the name of the PEP node to delete along with all of its items |
QXmppTask< QXmppPubSubManager::PublishItemResult > QXmppPubSubManager::publishItem | ( | const QString & | jid, |
const QString & | nodeName, | ||
const T & | item | ||
) |
Publishs one item to a pubsub node.
This is a convenience method equivalent to calling QXmppPubSubManager::publishItem with no publish options.
jid | Jabber ID of the entity hosting the pubsub service |
nodeName | the name of the node to publish the item to |
item | the item to publish |
QXmppTask< QXmppPubSubManager::PublishItemResult > QXmppPubSubManager::publishItem | ( | const QString & | jid, |
const QString & | nodeName, | ||
const T & | item, | ||
const QXmppPubSubPublishOptions & | publishOptions | ||
) |
Publishs one item to a pubsub node.
This is a convenience method equivalent to calling QXmppPubSubManager::publishItem with no publish options.
jid | Jabber ID of the entity hosting the pubsub service |
nodeName | the name of the node to publish the item to |
item | the item to publish |
publishOptions | publish-options for the items |
QXmppTask< QXmppPubSubManager::PublishItemsResult > QXmppPubSubManager::publishItems | ( | const QString & | jid, |
const QString & | nodeName, | ||
const QVector< T > & | items | ||
) |
Publishs items to a pubsub node.
jid | Jabber ID of the entity hosting the pubsub service |
nodeName | the name of the node to publish the items to |
items | the items to publish |
QXmppTask< QXmppPubSubManager::PublishItemsResult > QXmppPubSubManager::publishItems | ( | const QString & | jid, |
const QString & | nodeName, | ||
const QVector< T > & | items, | ||
const QXmppPubSubPublishOptions & | publishOptions | ||
) |
Publishs items to a pubsub node.
jid | Jabber ID of the entity hosting the pubsub service |
nodeName | the name of the node to publish the items to |
items | the items to publish |
publishOptions | publish-options for the items |
QXmppTask< QXmppPubSubManager::PublishItemResult > QXmppPubSubManager::publishOwnPepItem | ( | const QString & | nodeName, |
const T & | item | ||
) |
Publishs one item to a PEP node.
nodeName | the name of the PEP node to publish the item to |
item | the item to publish |
QXmppTask< QXmppPubSubManager::PublishItemResult > QXmppPubSubManager::publishOwnPepItem | ( | const QString & | nodeName, |
const T & | item, | ||
const QXmppPubSubPublishOptions & | publishOptions | ||
) |
Publishs one item to a PEP node.
nodeName | the name of the PEP node to publish the item to |
item | the item to publish |
publishOptions | publish-options for fine tuning |
QXmppTask< QXmppPubSubManager::PublishItemsResult > QXmppPubSubManager::publishOwnPepItems | ( | const QString & | nodeName, |
const QVector< T > & | items | ||
) |
Publishs items to a PEP node.
nodeName | the name of the PEP node to publish the items to |
items | the items to publish |
QXmppTask< QXmppPubSubManager::PublishItemsResult > QXmppPubSubManager::publishOwnPepItems | ( | const QString & | nodeName, |
const QVector< T > & | items, | ||
const QXmppPubSubPublishOptions & | publishOptions | ||
) |
Publishs items to a PEP node.
nodeName | the name of the PEP node to publish the items to |
items | the items to publish |
publishOptions | publish-options for fine tuning (optional). Pass an empty form to honor the default options of the PEP node |
auto QXmppPubSubManager::purgeItems | ( | const QString & | jid, |
const QString & | nodeName | ||
) |
Purges all items from a node.
jid | Jabber ID of the entity hosting the pubsub service |
nodeName | the name of the PEP node to delete along with all of its items |
|
inline |
Purges all items from a PEP node.
This is a convenience method equivalent to calling QXmppPubSubManager::purgeItems on the current account's bare JID.
nodeName | the name of the PEP node to delete along with all of its items |
QXmppTask< QXmppPubSubManager::AffiliationsResult > QXmppPubSubManager::requestAffiliations | ( | const QString & | jid | ) |
Requests the user's affiliations with all PubSub nodes on a PubSub service.
jid | JID of the pubsub service |
QXmppTask< QXmppPubSubManager::AffiliationsResult > QXmppPubSubManager::requestAffiliations | ( | const QString & | jid, |
const QString & | nodeName | ||
) |
Requests the user's affiliations with a PubSub node.
jid | JID of the pubsub service |
nodeName | Name of the pubsub node on the service. |
QXmppTask< QXmppPubSubManager::ItemResult< T > > QXmppPubSubManager::requestItem | ( | const QString & | jid, |
const QString & | nodeName, | ||
const QString & | itemId | ||
) |
Requests a specific item of an entity's node.
jid | Jabber ID of the entity hosting the pubsub service. For PEP this should be an account's bare JID |
nodeName | the name of the node to query |
itemId | the ID of the item to retrieve |
QXmppTask< QXmppPubSubManager::ItemResult< T > > QXmppPubSubManager::requestItem | ( | const QString & | jid, |
const QString & | nodeName, | ||
StandardItemId | itemId | ||
) |
Requests a specific item of an entity's node.
jid | Jabber ID of the entity hosting the pubsub service. For PEP this should be an account's bare JID |
nodeName | the name of the node to query |
itemId | the ID of the item to retrieve |
QXmppTask< QXmppPubSubManager::ItemIdsResult > QXmppPubSubManager::requestItemIds | ( | const QString & | serviceJid, |
const QString & | nodeName | ||
) |
Requests the IDs of all items of a pubsub service node via service discovery.
This uses a XEP-0030: Service Discovery items request to get a list of items.
serviceJid | JID of the entity hosting the pubsub service |
nodeName | the name of the node whose items are requested |
QXmppTask< QXmppPubSubManager::ItemsResult< T > > QXmppPubSubManager::requestItems | ( | const QString & | jid, |
const QString & | nodeName | ||
) |
Requests all items of an entity's node.
jid | Jabber ID of the entity hosting the pubsub service. For PEP this should be an account's bare JID |
nodeName | the name of the node to query |
QXmppTask< QXmppPubSubManager::ItemsResult< T > > QXmppPubSubManager::requestItems | ( | const QString & | jid, |
const QString & | nodeName, | ||
const QStringList & | itemIds | ||
) |
Requests items of an entity's node.
jid | Jabber ID of the entity hosting the pubsub service. For PEP this should be an account's bare JID |
nodeName | the name of the node to query |
itemIds | the IDs of the items to retrieve. If empty, retrieves all items |
QXmppTask< QXmppPubSubManager::AffiliationsResult > QXmppPubSubManager::requestNodeAffiliations | ( | const QString & | jid, |
const QString & | nodeName | ||
) |
Requests the affiliations of all users on a PubSub node.
This can be used to view and manage affiliations of other users with a node. Owner privileges are required.
jid | JID of the pubsub service |
nodeName | Name of the pubsub node on the service. |
QXmppTask< QXmppPubSubManager::NodeConfigResult > QXmppPubSubManager::requestNodeConfiguration | ( | const QString & | service, |
const QString & | nodeName | ||
) |
Requests the node configuration and starts the configuration process.
Requires owner privileges. If the result is successful (a node config form has been returned) this starts the configuration process. The next step is to call configureNode() or cancelNodeConfiguration().
service | JID of the pubsub service |
nodeName | Name of the pubsub node on the service |
QXmppTask< QXmppPubSubManager::NodesResult > QXmppPubSubManager::requestNodes | ( | const QString & | jid | ) |
Requests all listed nodes of a pubsub service via service discovery.
This uses a XEP-0030: Service Discovery items request to get a list of nodes.
jid | Jabber ID of the entity hosting the pubsub service |
|
inline |
Requests a specific item of a PEP node.
This is a convenience method equivalent to calling QXmppPubSubManager::requestItem on the current account's bare JID.
nodeName | name of the PEP node whose item is requested |
itemId | ID of the requested item |
|
inline |
Requests a specific item of a PEP node.
This is a convenience method equivalent to calling QXmppPubSubManager::requestItem on the current account's bare JID.
nodeName | name of the PEP node whose item is requested |
itemId | ID of the requested item |
|
inline |
Requests the IDs of all items of a pubsub service node via service discovery.
This is a convenience method equivalent to calling QXmppPubSubManager::requestItemIds on the current account's bare JID.
nodeName | name of the PEP node whose item IDs are requested |
|
inline |
Requests all items of a PEP node.
This is a convenience method equivalent to calling QXmppPubSubManager::requestItems on the current account's bare JID.
nodeName | name of the PEP node whose items are requested |
|
inline |
Requests the node configuration and starts the configuration process.
This is a convenience method equivalent to calling requestNodeConfiguration() the current account's bare JID.
nodeName | Name of the pubsub node on the service |
|
inline |
Requests all listed nodes of the own PEP service via service discovery.
This is a convenience method equivalent to calling QXmppPubSubManager::fetchNodes on the current account's bare JID.
QXmppTask< QXmppPubSubManager::OptionsResult > QXmppPubSubManager::requestSubscribeOptions | ( | const QString & | service, |
const QString & | nodeName | ||
) |
Requests the subscribe options form of the own subscription to a node.
service | JID of the pubsub service |
nodeName | Name of the pubsub node on the service. |
QXmppTask< QXmppPubSubManager::OptionsResult > QXmppPubSubManager::requestSubscribeOptions | ( | const QString & | service, |
const QString & | nodeName, | ||
const QString & | subscriberJid | ||
) |
Requests the subscribe options form of a user's subscription to a node.
service | JID of the pubsub service |
nodeName | Name of the pubsub node on the service |
subscriberJid | JID of the user to request the options for |
QXmppTask< QXmppPubSubManager::SubscriptionsResult > QXmppPubSubManager::requestSubscriptions | ( | const QString & | jid | ) |
Requests all subscriptions with a PubSub service.
jid | JID of the pubsub service |
QXmppTask< QXmppPubSubManager::SubscriptionsResult > QXmppPubSubManager::requestSubscriptions | ( | const QString & | jid, |
const QString & | nodeName | ||
) |
Requests the subscription(s) with a specific PubSub node.
jid | JID of the pubsub service |
nodeName | Name of the node on the pubsub service |
auto QXmppPubSubManager::retractItem | ( | const QString & | jid, |
const QString & | nodeName, | ||
const QString & | itemId | ||
) |
Deletes an item from a pubsub node.
jid | Jabber ID of the entity hosting the pubsub service |
nodeName | the name of the node to delete the item from |
itemId | the ID of the item to delete |
auto QXmppPubSubManager::retractItem | ( | const QString & | jid, |
const QString & | nodeName, | ||
StandardItemId | itemId | ||
) |
Deletes an item from a pubsub node.
jid | Jabber ID of the entity hosting the pubsub service |
nodeName | the name of the node to delete the item from |
itemId | the ID of the item to delete |
|
inline |
Deletes an item from a PEP node.
This is a convenience method equivalent to calling QXmppPubSubManager::retractItem on the current account's bare JID.
nodeName | the name of the PEP node to delete the item from |
itemId | the ID of the item to delete |
|
inline |
Deletes an item from a PEP node.
This is a convenience method equivalent to calling QXmppPubSubManager::retractItem on the current account's bare JID.
nodeName | the name of the PEP node to delete the item from |
itemId | the ID of the item to delete |
QXmppTask< QXmppPubSubManager::Result > QXmppPubSubManager::setSubscribeOptions | ( | const QString & | service, |
const QString & | nodeName, | ||
const QXmppPubSubSubscribeOptions & | options | ||
) |
Sets the subscription options for our own account.
service | JID of the pubsub service |
nodeName | Name of the pubsub node on the service |
options | The new options to be set |
QXmppTask< QXmppPubSubManager::Result > QXmppPubSubManager::setSubscribeOptions | ( | const QString & | service, |
const QString & | nodeName, | ||
const QXmppPubSubSubscribeOptions & | options, | ||
const QString & | subscriberJid | ||
) |
Sets the subscription options for another users's account.
service | JID of the pubsub service |
nodeName | Name of the pubsub node on the service |
options | The new options to be set |
subscriberJid | The JID of the user |
|
static |
Returns a standard item ID string.
itemId | standard item ID to be translated |
QXmppTask< QXmppPubSubManager::Result > QXmppPubSubManager::subscribeToNode | ( | const QString & | serviceJid, |
const QString & | nodeName, | ||
const QString & | subscriberJid | ||
) |
Subscribes to a node.
serviceJid | JID of the pubsub service |
nodeName | name of the pubsub node being subscribed |
subscriberJid | bare or full JID of the subscriber |
QXmppTask< QXmppPubSubManager::Result > QXmppPubSubManager::unsubscribeFromNode | ( | const QString & | serviceJid, |
const QString & | nodeName, | ||
const QString & | subscriberJid | ||
) |
Unsubscribes from a node.
serviceJid | JID of the pubsub service |
nodeName | name of the pubsub node being subscribed |
subscriberJid | bare or full JID of the subscriber |