2006-12-14 22:15:05 +01:00
|
|
|
/* SOGoCalendarComponent.h - this file is part of SOGo
|
|
|
|
*
|
2011-03-30 01:25:40 +02:00
|
|
|
* Copyright (C) 2006-2011 Inverse inc.
|
2006-12-14 22:15:05 +01:00
|
|
|
*
|
|
|
|
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
2011-03-30 01:25:40 +02:00
|
|
|
* Francis Lachapelle <flachapelle@inverse.ca>
|
2006-12-14 22:15:05 +01:00
|
|
|
*
|
|
|
|
* This file is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
* any later version.
|
|
|
|
*
|
|
|
|
* This file is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; see the file COPYING. If not, write to
|
|
|
|
* the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef SOGOCALENDARCOMPONENT_H
|
|
|
|
#define SOGOCALENDARCOMPONENT_H
|
|
|
|
|
|
|
|
#import <SOGo/SOGoContentObject.h>
|
|
|
|
|
2008-07-17 23:12:43 +02:00
|
|
|
#import "SOGoComponentOccurence.h"
|
|
|
|
|
2007-01-31 21:15:28 +01:00
|
|
|
@class NSArray;
|
2006-12-14 22:15:05 +01:00
|
|
|
@class NSString;
|
|
|
|
|
|
|
|
@class iCalCalendar;
|
2009-05-06 23:57:21 +02:00
|
|
|
@class iCalEvent;
|
2007-05-03 20:49:19 +02:00
|
|
|
@class iCalPerson;
|
2007-01-31 21:15:28 +01:00
|
|
|
@class iCalRepeatableEntityObject;
|
2006-12-14 22:15:05 +01:00
|
|
|
|
2007-05-03 20:49:19 +02:00
|
|
|
@class SOGoUser;
|
2008-07-17 23:12:43 +02:00
|
|
|
@class SOGoComponentOccurence;
|
2007-05-03 20:49:19 +02:00
|
|
|
|
2008-07-17 23:12:43 +02:00
|
|
|
@interface SOGoCalendarComponent : SOGoContentObject <SOGoComponentOccurence>
|
|
|
|
{
|
|
|
|
iCalCalendar *fullCalendar;
|
|
|
|
iCalCalendar *safeCalendar;
|
|
|
|
iCalCalendar *originalCalendar;
|
2008-11-18 01:06:37 +01:00
|
|
|
NSString *componentTag;
|
2008-07-17 23:12:43 +02:00
|
|
|
}
|
2006-12-14 22:15:05 +01:00
|
|
|
|
2011-07-05 15:24:25 +02:00
|
|
|
- (void) flush;
|
2007-02-15 21:59:02 +01:00
|
|
|
- (NSString *) componentTag;
|
2008-11-18 01:06:37 +01:00
|
|
|
- (void) setComponentTag: (NSString *) theTag;
|
2006-12-14 22:15:05 +01:00
|
|
|
|
2007-11-18 11:16:25 +01:00
|
|
|
- (iCalCalendar *) calendar: (BOOL) create
|
|
|
|
secure: (BOOL) secure;
|
|
|
|
- (id) component: (BOOL) create secure: (BOOL) secure;
|
2007-01-31 19:43:25 +01:00
|
|
|
|
2009-05-06 23:57:21 +02:00
|
|
|
- (BOOL) expandGroupsInEvent: (iCalEvent *) theEvent;
|
|
|
|
|
2010-08-26 16:14:10 +02:00
|
|
|
- (NSException *) copyComponent: (iCalCalendar *) calendar
|
|
|
|
toFolder: (SOGoGCSFolder *) newFolder;
|
|
|
|
|
2011-03-30 01:25:40 +02:00
|
|
|
- (void) updateComponent: (iCalRepeatableEntityObject *) newObject;
|
2011-04-25 12:31:08 +02:00
|
|
|
- (NSException *) saveComponent: (iCalRepeatableEntityObject *) newObject;
|
2007-04-11 20:58:01 +02:00
|
|
|
|
2007-01-31 21:15:28 +01:00
|
|
|
/* mail notifications */
|
2008-10-01 21:32:14 +02:00
|
|
|
- (void) sendEMailUsingTemplateNamed: (NSString *) pageName
|
|
|
|
forObject: (iCalRepeatableEntityObject *) object
|
2008-11-18 01:06:37 +01:00
|
|
|
previousObject: (iCalRepeatableEntityObject *) previousObject
|
2008-10-01 21:32:14 +02:00
|
|
|
toAttendees: (NSArray *) attendees;
|
2008-07-10 17:26:41 +02:00
|
|
|
- (void) sendIMIPReplyForEvent: (iCalRepeatableEntityObject *) event
|
2008-11-10 16:38:05 +01:00
|
|
|
from: (SOGoUser *) from
|
2008-07-10 17:26:41 +02:00
|
|
|
to: (iCalPerson *) recipient;
|
2008-11-10 16:38:05 +01:00
|
|
|
- (void) sendResponseToOrganizer: (iCalRepeatableEntityObject *) newComponent
|
2009-08-27 18:20:41 +02:00
|
|
|
from: (SOGoUser *) owner;
|
2007-01-31 21:15:28 +01:00
|
|
|
|
2009-08-25 23:28:24 +02:00
|
|
|
- (void) sendReceiptEmailUsingTemplateNamed: (NSString *) template
|
|
|
|
forObject: (iCalRepeatableEntityObject *) object
|
|
|
|
to: (NSArray *) recipients;
|
|
|
|
|
2007-06-01 22:42:39 +02:00
|
|
|
- (iCalPerson *) findParticipantWithUID: (NSString *) uid;
|
2007-03-18 16:08:41 +01:00
|
|
|
|
2007-05-09 21:11:32 +02:00
|
|
|
- (iCalPerson *) iCalPersonWithUID: (NSString *) uid;
|
|
|
|
- (NSArray *) getUIDsForICalPersons: (NSArray *) iCalPersons;
|
|
|
|
|
2008-07-17 23:12:43 +02:00
|
|
|
/* recurrences */
|
2008-11-22 08:20:22 +01:00
|
|
|
- (iCalRepeatableEntityObject *) lookupOccurence: (NSString *) recID;
|
2009-06-03 23:02:30 +02:00
|
|
|
- (SOGoComponentOccurence *) occurence: (iCalRepeatableEntityObject *) component;
|
2008-07-17 23:12:43 +02:00
|
|
|
- (iCalRepeatableEntityObject *) newOccurenceWithID: (NSString *) recID;
|
|
|
|
|
2011-10-03 21:32:37 +02:00
|
|
|
- (void) snoozeAlarm: (unsigned int) minutes;
|
|
|
|
|
2006-12-14 22:15:05 +01:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif /* SOGOCALENDARCOMPONENT_H */
|