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 - (void)setTrigger:(id)_value {
39 ASSIGN(self->trigger, _value);
45 - (void)setAttach:(id)_value {
46 ASSIGN(self->attach, _value);
52 - (void)setComment:(NSString *)_value {
53 ASSIGNCOPY(self->comment, _value);
55 - (NSString *)comment {
59 - (void)setAction:(NSString *)_value {
60 ASSIGNCOPY(self->action, _value);
62 - (NSString *)action {
66 - (void)setRecurrenceRule:(NSString *)_recurrenceRule {
67 ASSIGN(self->recurrenceRule, _recurrenceRule);
69 - (NSString *)recurrenceRule {
70 return self->recurrenceRule;
75 - (NSString *)description {
78 ms = [NSMutableString stringWithCapacity:128];
79 [ms appendFormat:@"<0x%08X[%@]:", self, NSStringFromClass([self class])];
82 [ms appendFormat:@" action=%@", self->action];
84 [ms appendFormat:@" comment=%@", self->comment];
86 [ms appendFormat:@" trigger=%@", self->trigger];
87 if (self->recurrenceRule)
88 [ms appendFormat:@" recurrenceRule=%@", self->recurrenceRule];
90 [ms appendString:@">"];