diff --git a/src/XMPPRoster.h b/src/XMPPRoster.h index b00087f..0bac3cd 100644 --- a/src/XMPPRoster.h +++ b/src/XMPPRoster.h @@ -78,6 +78,11 @@ } #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. * @@ -143,6 +148,8 @@ */ - (void)removeDelegate: (id )delegate; +- (XMPPConnection*)connection; + - (void)setDataStorage: (id )dataStorage; - (id )dataStorage; diff --git a/src/XMPPRoster.m b/src/XMPPRoster.m index c0dc2fb..9134e46 100644 --- a/src/XMPPRoster.m +++ b/src/XMPPRoster.m @@ -219,6 +219,11 @@ dataStorage = dataStorage_; } +- (XMPPConnection*)connection +{ + return connection; +} + - (id )dataStorage { return dataStorage;