Implement roster versioning.

Still needs some testing.
This commit is contained in:
Jonathan Schleifer 2012-02-06 16:17:37 +01:00
parent 04b9740263
commit cf420076c2
5 changed files with 102 additions and 40 deletions

View file

@ -26,6 +26,8 @@
#import "XMPPRosterItem.h"
#import <ObjFW/macros.h>
@implementation XMPPRosterItem
+ rosterItem
{
@ -104,13 +106,11 @@
- (void)setGroups: (OFArray*)groups_
{
OFArray *old = groups;
groups = [groups_ copy];
[old release];
OF_SETTER(groups, groups_, YES, YES)
}
- (OFArray*)groups
{
return [[groups copy] autorelease];
OF_GETTER(groups, YES)
}
@end