25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
|
@implementation XMPPRosterItem
@synthesize JID, name, subscription, groups;
+ rosterItem
{
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=%@, "
@"subscription=%@, groups=%@>",
JID, name, subscription, groups];
}
|