sogo/SoObjects/Appointments/SOGoCalendarComponent.h
Francis Lachapelle c512f1240f See Changelog.
Monotone-Parent: f13b039579047763006c2956ddf349f1bff203a3
Monotone-Revision: f6c7d4502b60b66206223a822d4911218f4bbacf

Monotone-Author: flachapelle@inverse.ca
Monotone-Date: 2010-08-26T14:14:10
Monotone-Branch: ca.inverse.sogo
2010-08-26 14:14:10 +00:00

91 lines
3 KiB
Objective-C

/* SOGoCalendarComponent.h - this file is part of SOGo
*
* Copyright (C) 2006-2009 Inverse inc.
*
* 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>
#import "SOGoComponentOccurence.h"
@class NSArray;
@class NSString;
@class iCalCalendar;
@class iCalEvent;
@class iCalPerson;
@class iCalRepeatableEntityObject;
@class SOGoUser;
@class SOGoComponentOccurence;
@interface SOGoCalendarComponent : SOGoContentObject <SOGoComponentOccurence>
{
iCalCalendar *fullCalendar;
iCalCalendar *safeCalendar;
iCalCalendar *originalCalendar;
NSString *componentTag;
}
- (NSString *) componentTag;
- (void) setComponentTag: (NSString *) theTag;
- (iCalCalendar *) calendar: (BOOL) create
secure: (BOOL) secure;
- (id) component: (BOOL) create secure: (BOOL) secure;
- (BOOL) expandGroupsInEvent: (iCalEvent *) theEvent;
- (NSException *) copyComponent: (iCalCalendar *) calendar
toFolder: (SOGoGCSFolder *) newFolder;
- (void) saveComponent: (iCalRepeatableEntityObject *) newObject;
/* mail notifications */
- (void) sendEMailUsingTemplateNamed: (NSString *) pageName
forObject: (iCalRepeatableEntityObject *) object
previousObject: (iCalRepeatableEntityObject *) previousObject
toAttendees: (NSArray *) attendees;
- (void) sendIMIPReplyForEvent: (iCalRepeatableEntityObject *) event
from: (SOGoUser *) from
to: (iCalPerson *) recipient;
- (void) sendResponseToOrganizer: (iCalRepeatableEntityObject *) newComponent
from: (SOGoUser *) owner;
- (void) sendReceiptEmailUsingTemplateNamed: (NSString *) template
forObject: (iCalRepeatableEntityObject *) object
to: (NSArray *) recipients;
- (iCalPerson *) findParticipantWithUID: (NSString *) uid;
- (iCalPerson *) iCalPersonWithUID: (NSString *) uid;
- (NSArray *) getUIDsForICalPersons: (NSArray *) iCalPersons;
/* recurrences */
- (iCalRepeatableEntityObject *) lookupOccurence: (NSString *) recID;
- (SOGoComponentOccurence *) occurence: (iCalRepeatableEntityObject *) component;
- (iCalRepeatableEntityObject *) newOccurenceWithID: (NSString *) recID;
@end
#endif /* SOGOCALENDARCOMPONENT_H */