21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#import "XMPPRosterItem.h"
@implementation XMPPRosterItem
+ rosterItem
{
return [[[self alloc] init] autorelease];
}
|
>
>
|
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
*/
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#import "XMPPRosterItem.h"
#import <ObjFW/macros.h>
@implementation XMPPRosterItem
+ rosterItem
{
return [[[self alloc] init] autorelease];
}
|
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
- (OFString*)subscription
{
return [[subscription copy] autorelease];
}
- (void)setGroups: (OFArray*)groups_
{
OFArray *old = groups;
groups = [groups_ copy];
[old release];
}
- (OFArray*)groups
{
return [[groups copy] autorelease];
}
@end
|
|
<
<
|
|
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
|
- (OFString*)subscription
{
return [[subscription copy] autorelease];
}
- (void)setGroups: (OFArray*)groups_
{
OF_SETTER(groups, groups_, YES, YES)
}
- (OFArray*)groups
{
OF_GETTER(groups, YES)
}
@end
|