]> err.no Git - sope/blob - sope-ical/NGiCal/iCalEntityObject.h
import of overhauled version of versitSaxDriver
[sope] / sope-ical / NGiCal / iCalEntityObject.h
1 /*
2   Copyright (C) 2000-2004 SKYRIX Software AG
3
4   This file is part of OpenGroupware.org.
5
6   OGo 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   OGo 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 OGo; 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 // $Id$
22
23 #ifndef __NGiCal_iCalEntityObject_H__
24 #define __NGiCal_iCalEntityObject_H__
25
26 #include <NGiCal/iCalObject.h>
27
28 /*
29   iCalEntityObject
30   
31   This is a common base class for tasks and appointments which share a lot of
32   attributes.
33 */
34
35 @class NSCalendarDate, NSMutableArray, NSString, NSArray, NSNumber;
36 @class iCalPerson;
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 }
57
58 /* accessors */
59
60 - (void)setUid:(NSString *)_value;
61 - (NSString *)uid;
62
63 - (void)setSummary:(NSString *)_value;
64 - (NSString *)summary;
65
66 - (void)setLocation:(NSString *)_value;
67 - (NSString *)location;
68
69 - (void)setComment:(NSString *)_value;
70 - (NSString *)comment;
71
72 - (void)setTimeStampAsDate:(NSCalendarDate *)_date;
73 - (NSCalendarDate *)timeStampAsDate;
74
75 - (void)setStartDate:(NSCalendarDate *)_date;
76 - (NSCalendarDate *)startDate;
77
78 - (void)setLastModified:(NSCalendarDate *)_value;
79 - (NSCalendarDate *)lastModified;
80
81 - (void)setCreated:(NSCalendarDate *)_value;
82 - (NSCalendarDate *)created;
83
84 - (void)setAccessClass:(NSString *)_value;
85 - (NSString *)accessClass;
86
87 - (void)setPriority:(NSString *)_value;
88 - (NSString *)priority;
89
90 - (void)setCategories:(NSString *)_value;
91 - (NSString *)categories;
92
93 - (void)setSequence:(NSNumber *)_value; /* this is an int */
94 - (NSNumber *)sequence;
95
96 - (void)setOrganizer:(iCalPerson *)_organizer;
97 - (iCalPerson *)organizer;
98
99 - (void)setStatus:(NSString *)_value;
100 - (NSString *)status;
101
102 - (void)removeAllAttendees;
103 - (void)addToAttendees:(iCalPerson *)_person;
104 - (NSArray *)attendees;
105
106 - (void)removeAllAlarms;
107 - (void)addToAlarms:(id)_alarm;
108 - (NSArray *)alarms;
109 - (BOOL)hasAlarms;
110
111 @end
112
113 #endif /* __NGiCal_iCalEntityObject_H__ */