~ubuntu-branches/ubuntu/edgy/sope/edgy

« back to all changes in this revision

Viewing changes to sope-ical/NGiCal/iCalEntityObject.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Ley
  • Date: 2005-08-19 16:53:31 UTC
  • Revision ID: james.westby@ubuntu.com-20050819165331-hs683wz1osm708pw
Tags: upstream-4.4rc.2
ImportĀ upstreamĀ versionĀ 4.4rc.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
37
@interface iCalEntityObject : iCalObject
 
38
{
 
39
  NSString       *uid;
 
40
  NSString       *summary;
 
41
  NSTimeInterval timestamp;
 
42
  NSCalendarDate *created;
 
43
  NSCalendarDate *lastModified;
 
44
  NSCalendarDate *startDate;
 
45
  NSString       *accessClass;
 
46
  NSString       *priority;
 
47
  NSMutableArray *alarms;
 
48
  iCalPerson     *organizer;
 
49
  NSMutableArray *attendees;
 
50
  NSString       *comment;
 
51
  NSNumber       *sequence;
 
52
  NSString       *location;
 
53
  NSString       *status;
 
54
  NSString       *categories;
 
55
}
 
56
 
 
57
/* accessors */
 
58
 
 
59
- (void)setUid:(NSString *)_value;
 
60
- (NSString *)uid;
 
61
 
 
62
- (void)setSummary:(NSString *)_value;
 
63
- (NSString *)summary;
 
64
 
 
65
- (void)setLocation:(NSString *)_value;
 
66
- (NSString *)location;
 
67
 
 
68
- (void)setComment:(NSString *)_value;
 
69
- (NSString *)comment;
 
70
 
 
71
- (void)setTimeStampAsDate:(NSCalendarDate *)_date;
 
72
- (NSCalendarDate *)timeStampAsDate;
 
73
 
 
74
- (void)setStartDate:(NSCalendarDate *)_date;
 
75
- (NSCalendarDate *)startDate;
 
76
 
 
77
- (void)setLastModified:(NSCalendarDate *)_value;
 
78
- (NSCalendarDate *)lastModified;
 
79
 
 
80
- (void)setCreated:(NSCalendarDate *)_value;
 
81
- (NSCalendarDate *)created;
 
82
 
 
83
- (void)setAccessClass:(NSString *)_value;
 
84
- (NSString *)accessClass;
 
85
 
 
86
- (void)setPriority:(NSString *)_value;
 
87
- (NSString *)priority;
 
88
 
 
89
- (void)setCategories:(NSString *)_value;
 
90
- (NSString *)categories;
 
91
 
 
92
- (void)setSequence:(NSNumber *)_value; /* this is an int */
 
93
- (NSNumber *)sequence;
 
94
 
 
95
- (void)setOrganizer:(iCalPerson *)_organizer;
 
96
- (iCalPerson *)organizer;
 
97
- (BOOL)isOrganizer:(id)_email;
 
98
 
 
99
- (void)setStatus:(NSString *)_value;
 
100
- (NSString *)status;
 
101
 
 
102
- (void)removeAllAttendees;
 
103
- (void)addToAttendees:(iCalPerson *)_person;
 
104
- (NSArray *)attendees;
 
105
 
 
106
/* categorize attendees into participants and resources */
 
107
- (NSArray *)participants;
 
108
- (NSArray *)resources;
 
109
- (BOOL)isParticipant:(id)_email;
 
110
- (iCalPerson *)findParticipantWithEmail:(id)_email;
 
111
  
 
112
- (void)removeAllAlarms;
 
113
- (void)addToAlarms:(id)_alarm;
 
114
- (NSArray *)alarms;
 
115
- (BOOL)hasAlarms;
 
116
 
 
117
@end
 
118
 
 
119
#endif /* __NGiCal_iCalEntityObject_H__ */