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 __NGiCal_iCalEntityObject_H__
23 #define __NGiCal_iCalEntityObject_H__
25 #include <NGiCal/iCalObject.h>
30 This is a common base class for tasks and appointments which share a lot of
34 @class NSCalendarDate, NSMutableArray, NSString, NSArray, NSNumber;
37 @interface iCalEntityObject : iCalObject
41 NSTimeInterval timestamp;
42 NSCalendarDate *created;
43 NSCalendarDate *lastModified;
44 NSCalendarDate *startDate;
45 NSString *accessClass;
47 NSMutableArray *alarms;
48 iCalPerson *organizer;
49 NSMutableArray *attendees;
55 NSString *userComment;
60 - (void)setUid:(NSString *)_value;
63 - (void)setSummary:(NSString *)_value;
64 - (NSString *)summary;
66 - (void)setLocation:(NSString *)_value;
67 - (NSString *)location;
69 - (void)setComment:(NSString *)_value;
70 - (NSString *)comment;
72 - (void)setTimeStampAsDate:(NSCalendarDate *)_date;
73 - (NSCalendarDate *)timeStampAsDate;
75 - (void)setStartDate:(NSCalendarDate *)_date;
76 - (NSCalendarDate *)startDate;
78 - (void)setLastModified:(NSCalendarDate *)_value;
79 - (NSCalendarDate *)lastModified;
81 - (void)setCreated:(NSCalendarDate *)_value;
82 - (NSCalendarDate *)created;
84 - (void)setAccessClass:(NSString *)_value;
85 - (NSString *)accessClass;
87 - (void)setPriority:(NSString *)_value;
88 - (NSString *)priority;
90 - (void)setCategories:(NSString *)_value;
91 - (NSString *)categories;
93 - (void)setSequence:(NSNumber *)_value; /* this is an int */
94 - (NSNumber *)sequence;
95 - (void)increaseSequence;
97 - (void)setUserComment:(NSString *)_userComment;
98 - (NSString *)userComment;
100 - (void)setOrganizer:(iCalPerson *)_organizer;
101 - (iCalPerson *)organizer;
102 - (BOOL)isOrganizer:(id)_email;
104 - (void)setStatus:(NSString *)_value;
105 - (NSString *)status;
107 - (void)removeAllAttendees;
108 - (void)addToAttendees:(iCalPerson *)_person;
109 - (NSArray *)attendees;
111 /* categorize attendees into participants and resources */
112 - (NSArray *)participants;
113 - (NSArray *)resources;
114 - (BOOL)isParticipant:(id)_email;
115 - (iCalPerson *)findParticipantWithEmail:(id)_email;
117 - (void)removeAllAlarms;
118 - (void)addToAlarms:(id)_alarm;
124 #endif /* __NGiCal_iCalEntityObject_H__ */