Authors
- Generated by builder
-
- Declared in:
- XMPPServiceDiscovery.h
- Conforms to:
- XMPPInfoQueryStanzaHandler
Service discovery handler class. Handles XEP-0030
service discovery and caching via XEP-0115 entity
capabilities.
Instance Variables
Method summary
- (void)
addFeature: (
NSString*)aFeature;
Adds a feature to the list this client advertises.
- (
NSArray*)
featuresForJID: (
JID*)aJid
node: (
NSString*)aNode;
Returns the features associated with a given
JID/node combination. Returns nil
if
they have not been retrieved yet. A DiscoFeaturesFound
notification will be posted when they have
been with the jid field of the userinfo dictionary set
to the JID.
- (
NSArray*)
identitiesForJID: (
JID*)aJid
node: (
NSString*)aNode;
Returns the identities associated with a given
JID/node combination. Returns nil
if
they have not been retrieved yet. A DiscoFeaturesFound
notification will be posted when they have
been with the jid field of the userinfo dictionary set
to the JID.
- (
XMPPDiscoInfo*)
info;
Returns the info ivar, instantiated after a service
discovery for disco#info namespace
- (
XMPPDiscoItems*)
items;
Returns the item ivar, instantiated after a service
discovery for dico#item namespace
- (
NSArray*)
itemsForJID: (
JID*)aJid
node: (
NSString*)aNode;
Returns the items associated with a given JID/node
combination. Returns nil
if they
have not been retrieved yet. A DiscoItemsFound
notification will be posted when they have
been with the jid field of the userinfo dictionary set
to the JID.
- (void)
sendQueryToJID: (const
NSString*)jid
node: (const
NSString*)node
inNamespace: (const
NSString*)xmlns;
Sends a query to the specified Jid for the specified
namespace; disco#info or disco#items
- (void)
setCapabilities: (
NSString*)caps
forJID: (
JID*)aJid;
Sets XEP-00115 entitiy capabilities for a specified
JID.
Instance Variables for XMPPServiceDiscovery Class
@protected NSMutableDictionary* capabilitiesPerJID;
Description forthcoming.
@protected NSMutableDictionary* children;
Description forthcoming.
@protected XMPPConnection* connection;
Description forthcoming.
@protected XMPPDispatcher* dispatcher;
Description forthcoming.
@protected NSMutableDictionary* features;
Description forthcoming.
@protected NSMutableDictionary* featuresForCapabilities;
Description forthcoming.
@protected XMPPDiscoInfo* info;
Description forthcoming.
@protected XMPPDiscoItems* items;
Description forthcoming.
@protected NSMutableDictionary* knownNodes;
Description forthcoming.
@protected NSMutableSet* myFeatures;
Description forthcoming.