DiscoEntity: Answer to requests send to the caps node
This commit is contained in:
parent
56e3aef482
commit
441a9e4472
3 changed files with 55 additions and 6 deletions
|
@ -35,6 +35,7 @@
|
|||
{
|
||||
OFMutableDictionary *_discoNodes;
|
||||
XMPPConnection *_connection;
|
||||
OFString *_capsNode;
|
||||
}
|
||||
#ifdef OF_HAVE_PROPERTIES
|
||||
/**
|
||||
|
@ -45,6 +46,8 @@
|
|||
* any number of nodes nested more deeply.
|
||||
*/
|
||||
@property (readonly) OFDictionary *discoNodes;
|
||||
/// \brief The node advertised for the entity's capabilites
|
||||
@property (readonly) OFString *capsNode;
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -57,6 +60,18 @@
|
|||
*/
|
||||
+ discoEntityWithConnection: (XMPPConnection*)connection;
|
||||
|
||||
/**
|
||||
* \brief Creates a new autoreleased XMPPDiscoEntity with the specified
|
||||
* connection.
|
||||
*
|
||||
* \param connection The XMPPConnection to serve responses on.
|
||||
* This must already be bound to a resource)
|
||||
* \param capsNode The node advertised for the entity's capabilites
|
||||
* \return A new autoreleased XMPPDiscoEntity
|
||||
*/
|
||||
+ discoEntityWithConnection: (XMPPConnection*)connection
|
||||
capsNode: (OFString*)capsNode;
|
||||
|
||||
/**
|
||||
* \brief Initializes an already allocated XMPPDiscoEntity with the specified
|
||||
* connection.
|
||||
|
@ -67,6 +82,18 @@
|
|||
*/
|
||||
- initWithConnection: (XMPPConnection*)connection;
|
||||
|
||||
/**
|
||||
* \brief Initializes an already allocated XMPPDiscoEntity with the specified
|
||||
* connection.
|
||||
*
|
||||
* \param connection The XMPPConnection to serve responses on.
|
||||
* This must already be bound to a resource)
|
||||
* \param capsNode The node advertised for the entity's capabilites
|
||||
* \return An initialized XMPPDiscoEntity
|
||||
*/
|
||||
- initWithConnection: (XMPPConnection*)connection
|
||||
capsNode: (OFString*)capsNode;
|
||||
|
||||
/**
|
||||
* \brief Adds a XMPPDiscoNode to provide responses for.
|
||||
*
|
||||
|
@ -82,4 +109,5 @@
|
|||
- (OFString*)capsHash;
|
||||
|
||||
- (OFDictionary*)discoNodes;
|
||||
- (OFString*)capsNode;
|
||||
@end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue