The QXmppPubSubSubscription class represents a PubSub subscription contained in event notifications and IQ requests, as defined in XEP-0060: Publish- Subscribe.
- Since
- QXmpp 1.5
◆ ConfigurationSupport
The SubscribeOptionsSupport enum describes whether the availability of a subscription configuration. This is also known as <subscribe-options/>.
Enumerator |
---|
Unavailable | A subscription configuration is not advertised.
|
Available | Configuration of the subscription is possible, but not required.
|
Required | Configuration of the subscription is required. No event notifications are going to be sent until the subscription has been configured.
|
◆ State
The State enum describes the state of a subscription.
Enumerator |
---|
Invalid | No state information is included.
|
None | There is no subscription with the node.
|
Pending | A subscription is pending.
|
Subscribed | The user is subscribed to the node.
|
Unconfigured | The subscription requires configuration before it becomes active.
|
◆ QXmppPubSubSubscription()
QXmppPubSubSubscription::QXmppPubSubSubscription |
( |
const QString & |
jid = {} , |
|
|
const QString & |
node = {} , |
|
|
const QString & |
subId = {} , |
|
|
State |
state = Invalid , |
|
|
ConfigurationSupport |
configurationSupport = Unavailable , |
|
|
const QDateTime & |
expiry = {} |
|
) |
| |
◆ configurationSupport()
Returns the availability of a subscription configuration.
◆ expiry()
QDateTime QXmppPubSubSubscription::expiry |
( |
| ) |
const |
Returns the expiry date of the subscription.
If this timestamp is valid, the subscription is going to be cancelled at this date.
◆ isConfigurationRequired()
bool QXmppPubSubSubscription::isConfigurationRequired |
( |
| ) |
const |
Returns whether configuration of the subscription required before event notifications are going to be sent to the user.
◆ isConfigurationSupported()
bool QXmppPubSubSubscription::isConfigurationSupported |
( |
| ) |
const |
Returns whether a configuration of the subscription is possible.
◆ isSubscription()
bool QXmppPubSubSubscription::isSubscription |
( |
const QDomElement & |
element | ) |
|
|
static |
Returns true, if the element is a PubSub subscription element.
◆ jid()
QString QXmppPubSubSubscription::jid |
( |
| ) |
const |
Returns the JID of the user of this subscription.
◆ node()
QString QXmppPubSubSubscription::node |
( |
| ) |
const |
Returns the node name of this subscription.
◆ setConfigurationSupport()
Sets the availability of a subscription configuration.
◆ setExpiry()
void QXmppPubSubSubscription::setExpiry |
( |
const QDateTime & |
expiry | ) |
|
Sets the expiry date of the subscription.
If this timestamp is valid, the subscription is going to be cancelled at this date.
◆ setJid()
void QXmppPubSubSubscription::setJid |
( |
const QString & |
jid | ) |
|
Sets the JID of the user of this subscription.
◆ setNode()
void QXmppPubSubSubscription::setNode |
( |
const QString & |
node | ) |
|
Sets the node name of this subscription.
◆ setState()
void QXmppPubSubSubscription::setState |
( |
State |
state | ) |
|
Sets the state of the subscription.
◆ setSubId()
void QXmppPubSubSubscription::setSubId |
( |
const QString & |
subId | ) |
|
Sets the subscription ID (may be empty).
◆ state()
Returns the state of the subscription.
◆ stateFromString()
Converts a string with a subscription state to the enum value.
◆ stateToString()
QString QXmppPubSubSubscription::stateToString |
( |
State |
state | ) |
|
|
static |
Converts a subscription state to string.
◆ subId()
QString QXmppPubSubSubscription::subId |
( |
| ) |
const |
Returns the subscription ID (may be empty).
The documentation for this class was generated from the following files: