2 Copyright (C) 2000-2005 SKYRIX Software AG
4 This file is part of SOPE.
6 SOPE is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with SOPE; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
22 #include "iCalAlarm.h"
25 @implementation iCalAlarm
28 [self->trigger release];
29 [self->comment release];
30 [self->action release];
31 [self->attach release];
32 [self->recurrenceRule release];
38 - (id)copyWithZone:(NSZone *)_zone {
41 new = [super copyWithZone:_zone];
43 ASSIGNCOPY(new->trigger, self->trigger);
44 ASSIGNCOPY(new->comment, self->comment);
45 ASSIGNCOPY(new->action, self->action);
46 ASSIGNCOPY(new->attach, self->attach);
47 ASSIGNCOPY(new->recurrenceRule, self->recurrenceRule);
54 - (void)setTrigger:(id)_value {
55 ASSIGN(self->trigger, _value);
61 - (void)setAttach:(id)_value {
62 ASSIGN(self->attach, _value);
68 - (void)setComment:(NSString *)_value {
69 ASSIGNCOPY(self->comment, _value);
71 - (NSString *)comment {
75 - (void)setAction:(NSString *)_value {
76 ASSIGNCOPY(self->action, _value);
78 - (NSString *)action {
82 - (void)setRecurrenceRule:(NSString *)_recurrenceRule {
83 ASSIGN(self->recurrenceRule, _recurrenceRule);
85 - (NSString *)recurrenceRule {
86 return self->recurrenceRule;
91 - (NSString *)description {
94 ms = [NSMutableString stringWithCapacity:128];
95 [ms appendFormat:@"<0x%08X[%@]:", self, NSStringFromClass([self class])];
98 [ms appendFormat:@" action=%@", self->action];
100 [ms appendFormat:@" comment=%@", self->comment];
102 [ms appendFormat:@" trigger=%@", self->trigger];
103 if (self->recurrenceRule)
104 [ms appendFormat:@" recurrenceRule=%@", self->recurrenceRule];
106 [ms appendString:@">"];