X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=SoObjects%2FAppointments%2FSOGoAppointmentFolder.h;h=c359f65e01ec6af0a39bd488bb2c071006308a4e;hb=dfb3f58de2ad1d55bc979752ea0e95aedfcfe92a;hp=853ef0dc12584756ff17f680bc7b932dc374c38a;hpb=9cd1ac40314d3684f7b716eca2212b4a6360ebd6;p=scalable-opengroupware.org diff --git a/SoObjects/Appointments/SOGoAppointmentFolder.h b/SoObjects/Appointments/SOGoAppointmentFolder.h index 853ef0dc..c359f65e 100644 --- a/SoObjects/Appointments/SOGoAppointmentFolder.h +++ b/SoObjects/Appointments/SOGoAppointmentFolder.h @@ -22,8 +22,6 @@ #ifndef __Appointments_SOGoAppointmentFolder_H__ #define __Appointments_SOGoAppointmentFolder_H__ -#include - /* SOGoAppointmentFolder Parent object: the SOGoUserFolder @@ -38,63 +36,91 @@ create two different vevent-files with the same uid in the store. */ -@class NSString, NSArray, NSCalendarDate, NSException, NSMutableDictionary; +#import "SOGo/SOGoGCSFolder.h" + +#import + +@class NSArray; +@class NSCalendarDate; +@class NSException; +@class NSMutableDictionary; +@class NSString; +@class NSTimeZone; @class GCSFolder; -@interface SOGoAppointmentFolder : SOGoFolder +@interface SOGoAppointmentFolder : SOGoGCSFolder { + NSTimeZone *timeZone; NSMutableDictionary *uidToFilename; + NSMutableDictionary *aclMatrix; + NSMutableArray *stripFields; } +- (BOOL) isActive; + /* selection */ -- (NSArray *)calendarUIDs; +- (NSArray *) calendarUIDs; /* vevent UID handling */ -- (NSString *)resourceNameForEventUID:(NSString *)_uid; +- (NSString *) resourceNameForEventUID: (NSString *) _uid; +- (Class) objectClassForResourceNamed: (NSString *) c_name; /* fetching */ -- (NSArray *)fetchFields:(NSArray *)_fields - fromFolder:(GCSFolder *)_folder - from:(NSCalendarDate *)_startDate - to:(NSCalendarDate *)_endDate; - -- (NSArray *)fetchFields:(NSArray *)_fields - from:(NSCalendarDate *)_startDate - to:(NSCalendarDate *)_endDate; +- (NSArray *) fetchFields: (NSArray *) _fields + fromFolder: (GCSFolder *) _folder + from: (NSCalendarDate *) _startDate + to: (NSCalendarDate *) _endDate + title: (NSString *) title + component: (id) _component; -- (NSArray *)fetchCoreInfosFrom:(NSCalendarDate *)_startDate - to:(NSCalendarDate *)_endDate; +- (NSArray * ) fetchFields: (NSArray *) _fields + from: (NSCalendarDate *) _startDate + to: (NSCalendarDate *) _endDate + title: (NSString *) title + component: (id) _component; -- (NSArray *)fetchOverviewInfosFrom:(NSCalendarDate *)_startDate - to:(NSCalendarDate *)_endDate; +- (NSArray *) fetchCoreInfosFrom: (NSCalendarDate *) _startDate + to: (NSCalendarDate *) _endDate + title: (NSString *) title + component: (id) _component; -- (NSArray *)fetchFreebusyInfosFrom:(NSCalendarDate *)_startDate - to:(NSCalendarDate *)_endDate; +- (NSArray *) fetchFreeBusyInfosFrom: (NSCalendarDate *) _startDate + to: (NSCalendarDate *) _endDate; /* URL generation */ -- (NSString *)baseURLForAptWithUID:(NSString *)_uid inContext:(id)_ctx; +- (NSString *) baseURLForAptWithUID: (NSString *) _uid + inContext: (id) _ctx; /* folder management */ -- (id)lookupHomeFolderForUID:(NSString *)_uid inContext:(id)_ctx; +- (id) lookupHomeFolderForUID: (NSString *) _uid + inContext: (id) _ctx; -- (NSArray *)lookupCalendarFoldersForUIDs:(NSArray *)_uids inContext:(id)_ctx; -- (NSArray *)lookupFreeBusyObjectsForUIDs:(NSArray *)_uids inContext:(id)_ctx; +- (SOGoAppointmentFolder *) lookupCalendarFolderForUID: (NSString *) uid; +- (NSArray *) lookupCalendarFoldersForUIDs: (NSArray *) _uids + inContext: (id) _ctx; +- (NSArray *) lookupFreeBusyObjectsForUIDs: (NSArray *) _uids + inContext: (id) _ctx; -- (NSArray *)uidsFromICalPersons:(NSArray *)_persons; -- (NSArray *)lookupCalendarFoldersForICalPerson:(NSArray *)_persons - inContext:(id)_ctx; +- (NSArray *) uidsFromICalPersons: (NSArray *) _persons; +- (NSArray *) lookupCalendarFoldersForICalPerson: (NSArray *) _persons + inContext: (id) _ctx; -- (id)lookupGroupFolderForUIDs:(NSArray *)_uids inContext:(id)_ctx; -- (id)lookupGroupCalendarFolderForUIDs:(NSArray *)_uids inContext:(id)_ctx; +- (id) lookupGroupFolderForUIDs: (NSArray *) _uids + inContext: (id) _ctx; +- (id) lookupGroupCalendarFolderForUIDs: (NSArray *) _uids + inContext: (id) _ctx; /* bulk fetches */ -- (NSArray *)fetchAllSOGoAppointments; +- (NSArray *) fetchAllSOGoAppointments; + +- (NSString *) roleForComponentsWithAccessClass: (iCalAccessClass) accessClass + forUser: (NSString *) uid; @end