]> err.no Git - scalable-opengroupware.org/blobdiff - SoObjects/Appointments/SOGoCalendarComponent.h
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1052 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / SoObjects / Appointments / SOGoCalendarComponent.h
index 637c6f67d98e1bdb5db7d470812a2af395137001..50a1cfa2a3c2d7b82d061bf11fd31b866e2197c8 100644 (file)
 
 #import <SOGo/SOGoContentObject.h>
 
+@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 */