X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=SoObjects%2FAppointments%2FSOGoCalendarComponent.h;h=50a1cfa2a3c2d7b82d061bf11fd31b866e2197c8;hb=ab66b6ca55944e8393de4ccf5c4608bd34c83f5e;hp=637c6f67d98e1bdb5db7d470812a2af395137001;hpb=676baa9a4356a8dd9d99d1c88fc7589d742149b9;p=scalable-opengroupware.org diff --git a/SoObjects/Appointments/SOGoCalendarComponent.h b/SoObjects/Appointments/SOGoCalendarComponent.h index 637c6f67..50a1cfa2 100644 --- a/SoObjects/Appointments/SOGoCalendarComponent.h +++ b/SoObjects/Appointments/SOGoCalendarComponent.h @@ -25,25 +25,48 @@ #import +@class NSArray; @class NSString; @class iCalCalendar; +@class iCalPerson; +@class iCalRepeatableEntityObject; + +@class SOGoUser; @interface SOGoCalendarComponent : SOGoContentObject { iCalCalendar *calendar; + NSString *calContent; + BOOL isNew; } -/* accessors */ - -- (NSString *) iCalString; -- (iCalCalendar *) calendar; +- (NSString *) componentTag; +- (iCalCalendar *) calendar: (BOOL) create; +- (iCalRepeatableEntityObject *) component: (BOOL) create; +- (BOOL) isNew; - (NSException *) primarySaveContentString: (NSString *) _iCalString; - (NSException *) primaryDelete; - (NSException *) delete; +- (NSException *) changeParticipationStatus: (NSString *) _status; + +/* mail notifications */ +- (BOOL) sendEMailNotifications; +- (void) sendEMailUsingTemplateNamed: (NSString *) _pageName + forOldObject: (iCalRepeatableEntityObject *) _oldObject + andNewObject: (iCalRepeatableEntityObject *) _newObject + toAttendees: (NSArray *) _attendees; + +- (BOOL) isOrganizerOrOwner: (SOGoUser *) user; +- (iCalPerson *) participant: (SOGoUser *) user; + +- (iCalPerson *) iCalPersonWithUID: (NSString *) uid; +- (NSString *) getUIDForICalPerson: (iCalPerson *) person; +- (NSArray *) getUIDsForICalPersons: (NSArray *) iCalPersons; + @end #endif /* SOGOCALENDARCOMPONENT_H */