]> err.no Git - scalable-opengroupware.org/blob - SOPE/NGCards/iCalRepeatableEntityObject.h
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1241 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / SOPE / NGCards / iCalRepeatableEntityObject.h
1 /*
2   Copyright (C) 2004-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_iCalRepeatableEntityObject_H_
23 #define __NGCards_iCalRepeatableEntityObject_H_
24
25 #import "iCalEntityObject.h"
26
27 /*
28  iCalRepeatableEntityObject
29
30  Specifies an iCal entity object which can bear a (possibly complex) set
31  of recurrence rules and exceptions thereof. According to RFC 2445 these
32  are VEVENT, VTODO and VJOURNAL.
33 */
34
35 @class NSMutableArray, NGCalendarDateRange;
36
37 @interface iCalRepeatableEntityObject : iCalEntityObject
38 // {
39 //   NSMutableArray *rRules;
40 //   NSMutableArray *exRules;
41 //   NSMutableArray *exDates;
42 // }
43
44 - (void)removeAllRecurrenceRules;
45 - (void)addToRecurrenceRules:(id)_rrule;
46 - (void)setRecurrenceRules:(NSArray *)_rrule;
47 - (BOOL)hasRecurrenceRules;
48 - (NSArray *)recurrenceRules;
49
50 - (void)removeAllExceptionRules;
51 - (void)addToExceptionRules:(id)_rrule;
52 - (BOOL)hasExceptionRules;
53 - (NSArray *)exceptionRules;
54
55 - (void)removeAllExceptionDates;
56 - (void)addToExceptionDates:(id)_date;
57 - (BOOL)hasExceptionDates;
58 - (NSArray *)exceptionDates;
59
60 - (BOOL)isRecurrent;
61 - (BOOL)isWithinCalendarDateRange:(NGCalendarDateRange *)_range
62   firstInstanceCalendarDateRange:(NGCalendarDateRange *)_fir;
63 - (NSArray *)recurrenceRangesWithinCalendarDateRange:(NGCalendarDateRange *)_r
64   firstInstanceCalendarDateRange:(NGCalendarDateRange *)_fir;
65
66 /* this is the outmost bound possible, not necessarily the real last date */
67 - (NSCalendarDate *)lastPossibleRecurrenceStartDateUsingFirstInstanceCalendarDateRange:(NGCalendarDateRange *)_r;
68
69 @end
70
71 #endif  /* __NGCards_iCalRepeatableEntityObject_H_ */