]> err.no Git - scalable-opengroupware.org/blob - SOPE/NGCards/iCalEntityObject.h
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1178 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / SOPE / NGCards / 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 __NGCards_iCalEntityObject_H__
23 #define __NGCards_iCalEntityObject_H__
24
25 #import "CardGroup.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 typedef enum
39 {
40   iCalAccessPublic = 0,
41   iCalAccessPrivate = 1,
42   iCalAccessConfidential = 2,
43 } iCalAccessClass;
44
45 @interface iCalEntityObject : CardGroup
46
47 /* accessors */
48
49 - (void) setUid: (NSString *) _value;
50 - (NSString *) uid;
51
52 - (void) setSummary: (NSString *) _value;
53 - (NSString *) summary;
54
55 - (void) setLocation: (NSString *) _value;
56 - (NSString *) location;
57
58 - (void) setComment: (NSString *) _value;
59 - (NSString *) comment;
60
61 - (void) setAccessClass:(NSString *) _value;
62 - (NSString *) accessClass;
63 - (iCalAccessClass) symbolicAccessClass;
64 - (BOOL) isPublic;
65
66 - (void) setPriority: (NSString *) _value;
67 - (NSString *) priority;
68
69 - (void) setCategories: (NSString *) _value;
70 - (NSString *)categories;
71
72 - (void) setUserComment: (NSString *) _userComment;
73 - (NSString *) userComment;
74
75 - (void) setTimeStampAsDate: (NSCalendarDate *)_date;
76 - (NSCalendarDate *) timeStampAsDate;
77
78 - (void) setStartDate: (NSCalendarDate *) newStartDate;
79 - (NSCalendarDate *) startDate;
80 - (BOOL) hasStartDate;
81
82 - (void) setLastModified: (NSCalendarDate *) _value;
83 - (NSCalendarDate *) lastModified;
84
85 - (void) setCreated: (NSCalendarDate *) _value;
86 - (NSCalendarDate *) created;
87
88 - (void) setSequence: (NSNumber *) _value; /* this is an int */
89 - (NSNumber *) sequence;
90 - (void) increaseSequence;
91
92 /* url can either be set as NSString or NSURL */ 
93 - (void) setUrl: (id) _value;
94 - (NSURL *) url;
95   
96 - (void) setOrganizer: (iCalPerson *) _organizer;
97 - (iCalPerson *) organizer;
98 - (BOOL)isOrganizer:(id)_email;
99
100 - (void) setStatus: (NSString *) _value;
101 - (NSString *) status;
102
103 - (void) removeAllAttendees;
104 - (void) addToAttendees: (iCalPerson *) _person;
105 - (NSArray *) attendees;
106 - (void) setAttendees: (NSArray *) attendees;
107
108 /* categorize attendees into participants and resources */
109 - (NSArray *) participants;
110 - (NSArray *) resources;
111 - (BOOL) isParticipant: (id) _email;
112 - (iCalPerson *) findParticipantWithEmail: (id) _email;
113   
114 - (void) removeAllAlarms;
115 - (void) addToAlarms: (id) _alarm;
116 - (NSArray *) alarms;
117 - (BOOL) hasAlarms;
118
119 @end
120
121 #endif /* __NGCards_iCalEntityObject_H__ */