Differences From Artifact [b55c3a6bd9]:
- File
src/XMPPRosterItem.m
— part of check-in
[6d15f9618b]
at
2012-06-01 22:16:56
on branch trunk
— Add missing header files
gcc complains about missing interfaces without this. (user: florob@babelmonkeys.de, size: 2566) [annotate] [blame] [check-ins using]
To Artifact [aca510ff6a]:
- File src/XMPPRosterItem.m — part of check-in [8dfcb87717] at 2013-02-12 21:36:39 on branch trunk — Prefix all ivars with an underscore. (user: js, size: 2456) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
33 34 35 36 37 38 39 | + rosterItem { return [[[self alloc] init] autorelease]; } - (void)dealloc { | | | | | | | | | | | | < < | | | < < | | | < < | | | | | 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 | + rosterItem { return [[[self alloc] init] autorelease]; } - (void)dealloc { [_JID release]; [_name release]; [_subscription release]; [_groups release]; [super dealloc]; } - 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]; } - (void)setJID: (XMPPJID*)JID { OF_SETTER(_JID, JID, YES, YES) } - (XMPPJID*)JID { OF_GETTER(_JID, YES) } - (void)setName: (OFString*)name { OF_SETTER(_name, name, YES, YES) } - (OFString*)name { OF_GETTER(_name, YES) } - (void)setSubscription: (OFString*)subscription { OF_SETTER(_subscription, subscription, YES, YES) } - (OFString*)subscription { OF_GETTER(_subscription, YES) } - (void)setGroups: (OFArray*)groups { OF_SETTER(_groups, groups, YES, YES) } - (OFArray*)groups { OF_GETTER(_groups, YES) } @end |