2006-06-15 21:34:10 +02:00
|
|
|
/*
|
|
|
|
Copyright (C) 2004-2005 SKYRIX Software AG
|
|
|
|
|
|
|
|
This file is part of OpenGroupware.org.
|
|
|
|
|
|
|
|
OGo is free software; you can redistribute it and/or modify it under
|
|
|
|
the terms of the GNU Lesser General Public License as published by the
|
|
|
|
Free Software Foundation; either version 2, or (at your option) any
|
|
|
|
later version.
|
|
|
|
|
|
|
|
OGo 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 Lesser General Public
|
|
|
|
License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with OGo; see the file COPYING. If not, write to the
|
|
|
|
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __Appointments_SOGoAppointmentFolder_H__
|
|
|
|
#define __Appointments_SOGoAppointmentFolder_H__
|
|
|
|
|
|
|
|
/*
|
|
|
|
SOGoAppointmentFolder
|
|
|
|
Parent object: the SOGoUserFolder
|
|
|
|
Child objects: SOGoAppointmentObject
|
|
|
|
|
|
|
|
The SOGoAppointmentFolder maps to an GCS folder of type 'appointment', that
|
|
|
|
is, a content folder containing iCalendar files (and a proper quicktable).
|
|
|
|
|
|
|
|
Important:
|
|
|
|
The folder assumes a 1:1 mapping between the vevent UID field and the
|
|
|
|
resource name in the content store. In other words, you are not allowed to
|
|
|
|
create two different vevent-files with the same uid in the store.
|
|
|
|
*/
|
|
|
|
|
2007-11-07 16:59:01 +01:00
|
|
|
#import "SOGo/SOGoGCSFolder.h"
|
2006-12-19 18:02:15 +01:00
|
|
|
|
2007-11-26 18:40:44 +01:00
|
|
|
#import <NGCards/iCalEntityObject.h>
|
|
|
|
|
2007-04-11 21:08:58 +02:00
|
|
|
@class NSArray;
|
|
|
|
@class NSCalendarDate;
|
|
|
|
@class NSException;
|
|
|
|
@class NSMutableDictionary;
|
|
|
|
@class NSString;
|
|
|
|
@class NSTimeZone;
|
2006-06-15 21:34:10 +02:00
|
|
|
@class GCSFolder;
|
|
|
|
|
2007-11-07 16:59:01 +01:00
|
|
|
@interface SOGoAppointmentFolder : SOGoGCSFolder
|
2006-06-15 21:34:10 +02:00
|
|
|
{
|
2007-04-11 21:08:58 +02:00
|
|
|
NSTimeZone *timeZone;
|
2006-06-15 21:34:10 +02:00
|
|
|
NSMutableDictionary *uidToFilename;
|
2007-11-26 18:40:44 +01:00
|
|
|
NSMutableDictionary *aclMatrix;
|
|
|
|
NSMutableArray *stripFields;
|
2006-06-15 21:34:10 +02:00
|
|
|
}
|
|
|
|
|
2007-09-15 00:01:02 +02:00
|
|
|
- (BOOL) isActive;
|
|
|
|
|
2008-04-22 01:03:48 +02:00
|
|
|
- (NSString *) calendarColor;
|
|
|
|
- (void) setCalendarColor: (NSString *) newColor;
|
|
|
|
|
2006-06-15 21:34:10 +02:00
|
|
|
/* selection */
|
|
|
|
|
2006-10-11 20:48:25 +02:00
|
|
|
- (NSArray *) calendarUIDs;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
/* vevent UID handling */
|
|
|
|
|
2006-10-11 20:48:25 +02:00
|
|
|
- (NSString *) resourceNameForEventUID: (NSString *) _uid;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
/* fetching */
|
|
|
|
|
2006-10-11 20:48:25 +02:00
|
|
|
- (NSArray *) fetchFields: (NSArray *) _fields
|
|
|
|
from: (NSCalendarDate *) _startDate
|
|
|
|
to: (NSCalendarDate *) _endDate
|
2007-11-21 18:23:51 +01:00
|
|
|
title: (NSString *) title
|
2008-05-16 17:52:19 +02:00
|
|
|
component: (id) _component
|
|
|
|
additionalFilters: (NSString *) filters;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2006-10-11 20:48:25 +02:00
|
|
|
- (NSArray *) fetchCoreInfosFrom: (NSCalendarDate *) _startDate
|
|
|
|
to: (NSCalendarDate *) _endDate
|
2007-11-21 18:23:51 +01:00
|
|
|
title: (NSString *) title
|
2006-10-11 20:48:25 +02:00
|
|
|
component: (id) _component;
|
2008-05-16 17:52:19 +02:00
|
|
|
- (NSArray *) fetchCoreInfosFrom: (NSCalendarDate *) _startDate
|
|
|
|
to: (NSCalendarDate *) _endDate
|
|
|
|
title: (NSString *) title
|
|
|
|
component: (id) _component
|
|
|
|
additionalFilters: (NSString *) filters;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2006-12-14 22:20:13 +01:00
|
|
|
- (NSArray *) fetchFreeBusyInfosFrom: (NSCalendarDate *) _startDate
|
2006-10-11 20:48:25 +02:00
|
|
|
to: (NSCalendarDate *) _endDate;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
/* URL generation */
|
|
|
|
|
2006-10-11 20:48:25 +02:00
|
|
|
- (NSString *) baseURLForAptWithUID: (NSString *) _uid
|
|
|
|
inContext: (id) _ctx;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
/* folder management */
|
|
|
|
|
2006-10-11 20:48:25 +02:00
|
|
|
- (id) lookupHomeFolderForUID: (NSString *) _uid
|
|
|
|
inContext: (id) _ctx;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2007-01-04 15:37:07 +01:00
|
|
|
- (SOGoAppointmentFolder *) lookupCalendarFolderForUID: (NSString *) uid;
|
2006-10-11 20:48:25 +02:00
|
|
|
- (NSArray *) lookupCalendarFoldersForUIDs: (NSArray *) _uids
|
|
|
|
inContext: (id) _ctx;
|
|
|
|
- (NSArray *) lookupFreeBusyObjectsForUIDs: (NSArray *) _uids
|
|
|
|
inContext: (id) _ctx;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2006-10-11 20:48:25 +02:00
|
|
|
- (NSArray *) uidsFromICalPersons: (NSArray *) _persons;
|
|
|
|
- (NSArray *) lookupCalendarFoldersForICalPerson: (NSArray *) _persons
|
|
|
|
inContext: (id) _ctx;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2008-05-03 00:51:49 +02:00
|
|
|
// - (id) lookupGroupFolderForUIDs: (NSArray *) _uids
|
|
|
|
// inContext: (id) _ctx;
|
|
|
|
// - (id) lookupGroupCalendarFolderForUIDs: (NSArray *) _uids
|
|
|
|
// inContext: (id) _ctx;
|
2006-06-15 21:34:10 +02:00
|
|
|
|
|
|
|
/* bulk fetches */
|
|
|
|
|
2007-04-26 03:16:19 +02:00
|
|
|
- (NSString *) roleForComponentsWithAccessClass: (iCalAccessClass) accessClass
|
|
|
|
forUser: (NSString *) uid;
|
|
|
|
|
2006-06-15 21:34:10 +02:00
|
|
|
@end
|
|
|
|
|
|
|
|
#endif /* __Appointments_SOGoAppointmentFolder_H__ */
|