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 "iCalTrigger.h"
25 @implementation iCalTrigger
28 [self->valueType release];
29 [self->value release];
35 - (id)copyWithZone:(NSZone *)_zone {
38 new = [super copyWithZone:_zone];
40 new->valueType = [self->valueType copyWithZone:_zone];
41 new->value = [self->value copyWithZone:_zone];
48 - (void)setValue:(NSString *)_value {
49 ASSIGNCOPY(self->value, _value);
55 - (void)setValueType:(NSString *)_value {
56 ASSIGNCOPY(self->valueType, _value);
58 - (NSString *)valueType {
59 return self->valueType;
64 - (NSString *)description {
67 ms = [NSMutableString stringWithCapacity:128];
68 [ms appendFormat:@"<0x%p[%@]:", self, NSStringFromClass([self class])];
71 [ms appendFormat:@" type=%@", self->valueType];
73 [ms appendFormat:@" value=%@", self->value];
75 [ms appendString:@">"];
79 @end /* iCalTrigger */