2006-12-14 22:15:05 +01:00
|
|
|
/* SOGoCalendarComponent.h - this file is part of SOGo
|
|
|
|
*
|
|
|
|
* Copyright (C) 2006 Inverse groupe conseil
|
|
|
|
*
|
|
|
|
* 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>
|
|
|
|
|
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;
|
|
|
|
|
2006-12-14 22:15:05 +01:00
|
|
|
@interface SOGoCalendarComponent : SOGoContentObject
|
|
|
|
{
|
|
|
|
iCalCalendar *calendar;
|
2007-03-07 22:33:13 +01:00
|
|
|
NSString *calContent;
|
2007-03-18 16:08:41 +01:00
|
|
|
BOOL isNew;
|
2006-12-14 22:15:05 +01:00
|
|
|
}
|
|
|
|
|
2007-02-15 21:59:02 +01:00
|
|
|
- (NSString *) componentTag;
|
2007-03-18 16:08:41 +01:00
|
|
|
- (iCalCalendar *) calendar: (BOOL) create;
|
|
|
|
- (iCalRepeatableEntityObject *) component: (BOOL) create;
|
|
|
|
- (BOOL) isNew;
|
2006-12-14 22:15:05 +01:00
|
|
|
|
2007-01-31 19:43:25 +01:00
|
|
|
- (NSException *) primarySaveContentString: (NSString *) _iCalString;
|
|
|
|
- (NSException *) primaryDelete;
|
|
|
|
|
2006-12-14 22:15:05 +01:00
|
|
|
- (NSException *) delete;
|
|
|
|
|
2007-04-11 20:58:01 +02:00
|
|
|
- (NSException *) changeParticipationStatus: (NSString *) _status;
|
|
|
|
|
2007-01-31 21:15:28 +01:00
|
|
|
/* mail notifications */
|
|
|
|
- (BOOL) sendEMailNotifications;
|
|
|
|
- (void) sendEMailUsingTemplateNamed: (NSString *) _pageName
|
|
|
|
forOldObject: (iCalRepeatableEntityObject *) _oldObject
|
|
|
|
andNewObject: (iCalRepeatableEntityObject *) _newObject
|
|
|
|
toAttendees: (NSArray *) _attendees;
|
|
|
|
|
2007-06-01 22:42:39 +02:00
|
|
|
// - (BOOL) isOrganizerOrOwner: (SOGoUser *) user;
|
|
|
|
|
|
|
|
- (iCalPerson *) findParticipant: (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;
|
|
|
|
- (NSString *) getUIDForICalPerson: (iCalPerson *) person;
|
|
|
|
- (NSArray *) getUIDsForICalPersons: (NSArray *) iCalPersons;
|
|
|
|
|
2006-12-14 22:15:05 +01:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif /* SOGOCALENDARCOMPONENT_H */
|