XMPPServiceDiscovery class documentation

Authors

Generated by builder

Software documentation for the XMPPServiceDiscovery class

XMPPServiceDiscovery : NSObject

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

addFeature: 

- (void) addFeature: (NSString*)aFeature;
Adds a feature to the list this client advertises.

featuresForJID: node: 

- (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.

identitiesForJID: node: 

- (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.

info 

- (XMPPDiscoInfo*) info;
Returns the info ivar, instantiated after a service discovery for disco#info namespace

initWithAccount: 

- (XMPPServiceDiscovery*) initWithAccount: (XMPPAccount*)account;
Description forthcoming.

items 

- (XMPPDiscoItems*) items;
Returns the item ivar, instantiated after a service discovery for dico#item namespace

itemsForJID: node: 

- (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.

sendQueryToJID: node: inNamespace: 

- (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

setCapabilities: forJID: 

- (void) setCapabilities: (NSString*)caps forJID: (JID*)aJid;
Sets XEP-00115 entitiy capabilities for a specified JID.



Instance Variables for XMPPServiceDiscovery Class

capabilitiesPerJID

@protected NSMutableDictionary* capabilitiesPerJID;
Description forthcoming.

children

@protected NSMutableDictionary* children;
Description forthcoming.

connection

@protected XMPPConnection* connection;
Description forthcoming.

dispatcher

@protected XMPPDispatcher* dispatcher;
Description forthcoming.

features

@protected NSMutableDictionary* features;
Description forthcoming.

featuresForCapabilities

@protected NSMutableDictionary* featuresForCapabilities;
Description forthcoming.

info

@protected XMPPDiscoInfo* info;
Description forthcoming.

items

@protected XMPPDiscoItems* items;
Description forthcoming.

knownNodes

@protected NSMutableDictionary* knownNodes;
Description forthcoming.

myFeatures

@protected NSMutableSet* myFeatures;
Description forthcoming.