QXmpp Version: 1.10.0
|
List of blocked entries according to XEP-0191: Blocking Command with helper functions to check the blocking state of JIDs. More...
Public Types | |
using | BlockingState = std::variant< NotBlocked, PartiallyBlocked, Blocked > |
Public Member Functions | |
QXmppBlocklist (QVector< QString > entries) | |
Constructs with given entries. | |
QVector< QString > | entries () const |
bool | containsEntry (QStringView) const |
BlockingState | blockingState (const QString &jid) const |
List of blocked entries according to XEP-0191: Blocking Command with helper functions to check the blocking state of JIDs.
Whether a JID is completely blocked (Blocked), partially blocked (PartiallyBlocked) or not blocked (NotBlocked).
QXmppBlocklist::BlockingState QXmppBlocklist::blockingState | ( | const QString & | jid | ) | const |
Checks the blocking state of a JID.
A JID can be a full JID, a bare JID, a domain or a domain with a resource, as in XEP-0191: Blocking Command.
bool QXmppBlocklist::containsEntry | ( | QStringView | entry | ) | const |
Checks whether the blocklist contains an entry.
containsEntry("user@domain.tld")
will return false even if domain.tld
is blocked completely. QVector< QString > QXmppBlocklist::entries | ( | ) | const |
Returns a list of blocked entires.
Entries may be full JIDs, bare JIDs, domains or domains with resource, as in XEP-0191: Blocking Command.