Index: src/XMPPRoster.h ================================================================== --- src/XMPPRoster.h +++ src/XMPPRoster.h @@ -76,10 +76,15 @@ BOOL rosterRequested; /// \endcond } #ifdef OF_HAVE_PROPERTIES +/** + * \brief The connection to which the roster belongs + */ +@property (readonly, assign) XMPPConnection *connection; + /** * \brief An object for data storage, conforming to the XMPPStorage protocol. * * Inherited from the connection if not overridden. */ @@ -140,10 +145,12 @@ * \brief Removes the specified delegate. * * \param delegate The delegate to remove */ - (void)removeDelegate: (id )delegate; + +- (XMPPConnection*)connection; - (void)setDataStorage: (id )dataStorage; - (id )dataStorage; /// \cond internal Index: src/XMPPRoster.m ================================================================== --- src/XMPPRoster.m +++ src/XMPPRoster.m @@ -216,10 +216,15 @@ @throw [OFInvalidArgumentException exceptionWithClass: [self class]]; dataStorage = dataStorage_; } + +- (XMPPConnection*)connection +{ + return connection; +} - (id )dataStorage { return dataStorage; }