@@ -33,10 +33,11 @@ */ @interface XMPPDiscoEntity: XMPPDiscoNode { OFMutableDictionary *_discoNodes; XMPPConnection *_connection; + OFString *_capsNode; } #ifdef OF_HAVE_PROPERTIES /** * \brief The XMPPDiscoNodes this entity provides Services Discovery * responses for @@ -43,10 +44,12 @@ * * This usually contains at least all immediate child nodes, but may contain * 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 /** * \brief Creates a new autoreleased XMPPDiscoEntity with the specified * connection. @@ -55,10 +58,22 @@ * This must already be bound to a resource) * \return A new autoreleased XMPPDiscoEntity */ + 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. * * \param connection The XMPPConnection to serve responses on. @@ -65,10 +80,22 @@ * This must already be bound to a resource) * \return An initialized XMPPDiscoEntity */ - 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. * * \param node The XMPPDiscoNode to provide responses for */ @@ -80,6 +107,7 @@ * \return A OFString containing the capabilities hash */ - (OFString*)capsHash; - (OFDictionary*)discoNodes; +- (OFString*)capsNode; @end