]> err.no Git - scalable-opengroupware.org/blobdiff - SoObjects/Appointments/SOGoAppointmentFolder.h
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1282 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / SoObjects / Appointments / SOGoAppointmentFolder.h
index 853ef0dc12584756ff17f680bc7b932dc374c38a..c359f65e01ec6af0a39bd488bb2c071006308a4e 100644 (file)
@@ -22,8 +22,6 @@
 #ifndef __Appointments_SOGoAppointmentFolder_H__
 #define __Appointments_SOGoAppointmentFolder_H__
 
-#include <SOGo/SOGoFolder.h>
-
 /*
   SOGoAppointmentFolder
     Parent object: the SOGoUserFolder
   create two different vevent-files with the same uid in the store.
 */
 
-@class NSString, NSArray, NSCalendarDate, NSException, NSMutableDictionary;
+#import "SOGo/SOGoGCSFolder.h"
+
+#import <NGCards/iCalEntityObject.h>
+
+@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