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 #ifndef __NGCards_iCalEntityObject_H__
23 #define __NGCards_iCalEntityObject_H__
30 This is a common base class for tasks and appointments which share a lot of
34 @class NSCalendarDate, NSMutableArray, NSString, NSArray, NSNumber;
41 iCalAccessPrivate = 1,
42 iCalAccessConfidential = 2,
45 @interface iCalEntityObject : CardGroup
49 - (void) setUid: (NSString *) _value;
52 - (void) setSummary: (NSString *) _value;
53 - (NSString *) summary;
55 - (void) setLocation: (NSString *) _value;
56 - (NSString *) location;
58 - (void) setComment: (NSString *) _value;
59 - (NSString *) comment;
61 - (void) setAccessClass:(NSString *) _value;
62 - (NSString *) accessClass;
63 - (iCalAccessClass) symbolicAccessClass;
66 - (void) setPriority: (NSString *) _value;
67 - (NSString *) priority;
69 - (void) setCategories: (NSString *) _value;
70 - (NSString *)categories;
72 - (void) setUserComment: (NSString *) _userComment;
73 - (NSString *) userComment;
75 - (void) setTimeStampAsDate: (NSCalendarDate *)_date;
76 - (NSCalendarDate *) timeStampAsDate;
78 - (void)setStartDate:(NSCalendarDate *)_date;
79 - (NSCalendarDate *)startDate;
80 - (BOOL) hasStartDate;
82 - (void)setLastModified:(NSCalendarDate *)_value;
83 - (NSCalendarDate *)lastModified;
85 - (void)setCreated:(NSCalendarDate *)_value;
86 - (NSCalendarDate *)created;
88 - (void)setSequence:(NSNumber *)_value; /* this is an int */
89 - (NSNumber *)sequence;
90 - (void)increaseSequence;
92 /* url can either be set as NSString or NSURL */
93 - (void)setUrl:(id)_value;
96 - (void)setOrganizer:(iCalPerson *)_organizer;
97 - (iCalPerson *)organizer;
98 - (BOOL)isOrganizer:(id)_email;
100 - (void)setStatus:(NSString *)_value;
101 - (NSString *)status;
103 - (void)removeAllAttendees;
104 - (void)addToAttendees:(iCalPerson *)_person;
105 - (NSArray *)attendees;
106 - (void) setAttendees: (NSArray *) attendees;
108 /* categorize attendees into participants and resources */
109 - (NSArray *)participants;
110 - (NSArray *)resources;
111 - (BOOL)isParticipant:(id)_email;
112 - (iCalPerson *)findParticipantWithEmail:(id)_email;
114 - (void)removeAllAlarms;
115 - (void)addToAlarms:(id)_alarm;
121 #endif /* __NGCards_iCalEntityObject_H__ */