2006-12-14 22:15:05 +01:00
|
|
|
/* SOGoCalendarComponent.h - this file is part of SOGo
|
|
|
|
*
|
2009-04-01 15:49:24 +02:00
|
|
|
* Copyright (C) 2006-2009 Inverse inc.
|
2006-12-14 22:15:05 +01:00
|
|
|
*
|
|
|
|
* Author: Wolfgang Sourdeau <wsourdeau@inverse.ca>
|
|
|
|
*
|
|
|
|
* 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;
|
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
|
|
|
|
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
|
|
|
|
2007-11-18 11:16:25 +01:00
|
|
|
// - (NSException *) primarySaveContentString: (NSString *) _iCalString;
|
|
|
|
// - (NSException *) primaryDelete;
|
2006-12-14 22:15:05 +01:00
|
|
|
|
2007-11-18 11:16:25 +01:00
|
|
|
- (void) saveComponent: (iCalRepeatableEntityObject *) newObject;
|
2007-04-11 20:58:01 +02:00
|
|
|
|
2007-01-31 21:15:28 +01:00
|
|
|
/* mail notifications */
|
|
|
|
- (BOOL) sendEMailNotifications;
|
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
|
|
|
|
from: (SOGoUser *) owner;
|
2007-01-31 21:15:28 +01:00
|
|
|
|
2007-06-01 22:42:39 +02:00
|
|
|
// - (BOOL) isOrganizerOrOwner: (SOGoUser *) user;
|
|
|
|
|
|
|
|
- (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;
|
2008-07-17 23:12:43 +02:00
|
|
|
- (SOGoComponentOccurence *)
|
|
|
|
occurence: (iCalRepeatableEntityObject *) component;
|
|
|
|
- (iCalRepeatableEntityObject *) newOccurenceWithID: (NSString *) recID;
|
|
|
|
|
2006-12-14 22:15:05 +01:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif /* SOGOCALENDARCOMPONENT_H */
|