]> err.no Git - sope/blob - sope-ical/NGiCal/iCalEntityObject.h
gstep-base compile fix
[sope] / sope-ical / NGiCal / iCalEntityObject.h
1 /*
2   Copyright (C) 2000-2005 SKYRIX Software AG
3
4   This file is part of SOPE.
5
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
9   later version.
10
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.
15
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
19   02111-1307, USA.
20 */
21
22 #ifndef __NGiCal_iCalEntityObject_H__
23 #define __NGiCal_iCalEntityObject_H__
24
25 #include <NGiCal/iCalObject.h>
26
27 /*
28   iCalEntityObject
29   
30   This is a common base class for tasks and appointments which share a lot of
31   attributes.
32 */
33
34 @class NSCalendarDate, NSMutableArray, NSString, NSArray, NSNumber;
35 @class iCalPerson;
36 @class NSURL;
37
38 @interface iCalEntityObject : iCalObject
39 {
40   NSString       *uid;
41   NSString       *summary;
42   NSTimeInterval timestamp;
43   NSCalendarDate *created;
44   NSCalendarDate *lastModified;
45   NSCalendarDate *startDate;
46   NSString       *accessClass;
47   NSString       *priority;
48   NSMutableArray *alarms;
49   iCalPerson     *organizer;
50   NSMutableArray *attendees;
51   NSString       *comment;
52   NSNumber       *sequence;
53   NSString       *location;
54   NSString       *status;
55   NSString       *categories;
56   NSString       *userComment;
57   NSURL          *url;
58 }
59
60 /* accessors */
61
62 - (void)setUid:(NSString *)_value;
63 - (NSString *)uid;
64
65 - (void)setSummary:(NSString *)_value;
66 - (NSString *)summary;
67
68 - (void)setLocation:(NSString *)_value;
69 - (NSString *)location;
70
71 - (void)setComment:(NSString *)_value;
72 - (NSString *)comment;
73
74 - (void)setTimeStampAsDate:(NSCalendarDate *)_date;
75 - (NSCalendarDate *)timeStampAsDate;
76
77 - (void)setStartDate:(NSCalendarDate *)_date;
78 - (NSCalendarDate *)startDate;
79
80 - (void)setLastModified:(NSCalendarDate *)_value;
81 - (NSCalendarDate *)lastModified;
82
83 - (void)setCreated:(NSCalendarDate *)_value;
84 - (NSCalendarDate *)created;
85
86 - (void)setAccessClass:(NSString *)_value;
87 - (NSString *)accessClass;
88
89 - (void)setPriority:(NSString *)_value;
90 - (NSString *)priority;
91
92 - (void)setCategories:(NSString *)_value;
93 - (NSString *)categories;
94
95 - (void)setSequence:(NSNumber *)_value; /* this is an int */
96 - (NSNumber *)sequence;
97 - (void)increaseSequence;
98
99 - (void)setUserComment:(NSString *)_userComment;
100 - (NSString *)userComment;
101
102 /* url can either be set as NSString or NSURL */ 
103 - (void)setUrl:(id)_value;
104 - (NSURL *)url;
105   
106 - (void)setOrganizer:(iCalPerson *)_organizer;
107 - (iCalPerson *)organizer;
108 - (BOOL)isOrganizer:(id)_email;
109
110 - (void)setStatus:(NSString *)_value;
111 - (NSString *)status;
112
113 - (void)removeAllAttendees;
114 - (void)addToAttendees:(iCalPerson *)_person;
115 - (NSArray *)attendees;
116
117 /* categorize attendees into participants and resources */
118 - (NSArray *)participants;
119 - (NSArray *)resources;
120 - (BOOL)isParticipant:(id)_email;
121 - (iCalPerson *)findParticipantWithEmail:(id)_email;
122   
123 - (void)removeAllAlarms;
124 - (void)addToAlarms:(id)_alarm;
125 - (NSArray *)alarms;
126 - (BOOL)hasAlarms;
127
128 @end
129
130 #endif /* __NGiCal_iCalEntityObject_H__ */