61 using Result = std::variant<QXmpp::Success, QXmppError>;
66 bool isRosterReceived()
const;
67 QStringList getRosterBareJids()
const;
70 QStringList getResources(
const QString &bareJid)
const;
71 QMap<QString, QXmppPresence> getAllPresencesForBareJid(
72 const QString &bareJid)
const;
74 const QString &resource)
const;
76 QXmppTask<Result> addRosterItem(
const QString &bareJid,
const QString &name = {},
const QSet<QString> &groups = {});
87 bool acceptSubscription(
const QString &bareJid,
const QString &reason = {});
88 bool refuseSubscription(
const QString &bareJid,
const QString &reason = {});
89 bool addItem(
const QString &bareJid,
const QString &name = {},
const QSet<QString> &groups = {});
90 bool removeItem(
const QString &bareJid);
91 bool renameItem(
const QString &bareJid,
const QString &name);
92 bool subscribe(
const QString &bareJid,
const QString &reason = {});
93 bool unsubscribe(
const QString &bareJid,
const QString &reason = {});
134 void _q_disconnected();
138 const std::unique_ptr<QXmppRosterManagerPrivate> d;
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition QXmppClientExtension.h:33
virtual bool handleStanza(const QDomElement &stanza)
You need to implement this method to process incoming XMPP stanzas.
Definition QXmppClientExtension.cpp:51
std::variant< QXmpp::Success, QXmppError > Result
Empty result containing QXmpp::Success or a QXmppError.
Definition QXmppRosterManager.h:61