diff options
| author | Linus Jahn <lnj@kaidan.im> | 2020-04-05 16:07:03 +0200 |
|---|---|---|
| committer | LNJ <lnj@kaidan.im> | 2020-04-05 16:31:44 +0200 |
| commit | 37c009e64a6a1f929b112c3eca910d9c58514f29 (patch) | |
| tree | d814d830c525ca92f0fc2921d213644023204e38 /src/client/QXmppRosterManager.cpp | |
| parent | 92ca98fd87764eda452a063bb06611f79829fd69 (diff) | |
| download | qxmpp-37c009e64a6a1f929b112c3eca910d9c58514f29.tar.gz | |
QXmppRosterManager: Add comment on pre-approved subscriptions
Diffstat (limited to 'src/client/QXmppRosterManager.cpp')
| -rw-r--r-- | src/client/QXmppRosterManager.cpp | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/client/QXmppRosterManager.cpp b/src/client/QXmppRosterManager.cpp index 9da4fd8f..4c154a4f 100644 --- a/src/client/QXmppRosterManager.cpp +++ b/src/client/QXmppRosterManager.cpp @@ -80,10 +80,19 @@ QXmppRosterManager::~QXmppRosterManager() delete d; } -/// Accepts a subscription request. /// -/// You can call this method in reply to the subscriptionRequest() signal. - +/// Accepts an existing subscription request or pre-approves future subscription +/// requests. +/// +/// You can call this method in reply to the subscriptionRequest() signal or to +/// create a pre-approved subscription. +/// +/// \note Pre-approving subscription requests is only allowed, if the server +/// supports RFC6121 and advertises the 'urn:xmpp:features:pre-approval' stream +/// feature. +/// +/// \sa QXmppStreamFeatures::preApprovedSubscriptionsSupported() +/// bool QXmppRosterManager::acceptSubscription(const QString &bareJid, const QString &reason) { QXmppPresence presence; |
