XMPPRoster: Add getter for the connection.
This commit is contained in:
parent
f9912bd3ad
commit
e8e70ff3fb
2 changed files with 12 additions and 0 deletions
|
@ -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 <XMPPRosterDelegate>)delegate;
|
||||
|
||||
- (XMPPConnection*)connection;
|
||||
|
||||
- (void)setDataStorage: (id <XMPPStorage>)dataStorage;
|
||||
- (id <XMPPStorage>)dataStorage;
|
||||
|
||||
|
|
|
@ -219,6 +219,11 @@
|
|||
dataStorage = dataStorage_;
|
||||
}
|
||||
|
||||
- (XMPPConnection*)connection
|
||||
{
|
||||
return connection;
|
||||
}
|
||||
|
||||
- (id <XMPPStorage>)dataStorage
|
||||
{
|
||||
return dataStorage;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue