Add -[XMPPRoster deleteRosterItem:] and -[XMPPRosterItem copy].
This commit is contained in:
parent
823ea0eb5e
commit
993d0a7596
3 changed files with 44 additions and 0 deletions
|
@ -30,6 +30,23 @@
|
|||
return [[[self alloc] init] autorelease];
|
||||
}
|
||||
|
||||
- copy
|
||||
{
|
||||
XMPPRosterItem *new = [[XMPPRosterItem alloc] init];
|
||||
|
||||
@try {
|
||||
new->JID = [JID copy];
|
||||
new->name = [name copy];
|
||||
new->subscription = [subscription copy];
|
||||
new->groups = [groups copy];
|
||||
} @catch (id e) {
|
||||
[new release];
|
||||
@throw e;
|
||||
}
|
||||
|
||||
return new;
|
||||
}
|
||||
|
||||
- (OFString*)description
|
||||
{
|
||||
return [OFString stringWithFormat: @"<XMPPRosterItem, JID=%@, name=%@, "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue