From: helge Date: Wed, 11 Aug 2004 12:37:28 +0000 (+0000) Subject: git-svn-id: http://svn.opengroupware.org/SOGo/trunk@175 d1b88da0-ebda-0310-925b-ed51d... X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2368835e8569cfb3463e08af5bdd5949c4d3ddc9;p=scalable-opengroupware.org git-svn-id: http://svn.opengroupware.org/SOGo/trunk@175 d1b88da0-ebda-0310-925b-ed51d893ca5b --- diff --git a/SOGo/SoObjects/Appointments/ChangeLog b/SOGo/SoObjects/Appointments/ChangeLog index cc4a7037..8893336c 100644 --- a/SOGo/SoObjects/Appointments/ChangeLog +++ b/SOGo/SoObjects/Appointments/ChangeLog @@ -1,3 +1,7 @@ +2004-08-11 + + * started SOGoGroupAppointmentFolder + 2004-07-02 Helge Hess * SOGoAppointmentFolder.m: added method to fetch core info from other diff --git a/SOGo/SoObjects/Appointments/GNUmakefile b/SOGo/SoObjects/Appointments/GNUmakefile index 26b2ddc6..fb184a26 100644 --- a/SOGo/SoObjects/Appointments/GNUmakefile +++ b/SOGo/SoObjects/Appointments/GNUmakefile @@ -13,6 +13,7 @@ Appointments_OBJC_FILES = \ \ SOGoAppointmentObject.m \ SOGoAppointmentFolder.m \ + SOGoGroupAppointmentFolder.m \ Appointments_RESOURCE_FILES += \ Version \ diff --git a/SOGo/SoObjects/Appointments/SOGoAppointmentFolder.h b/SOGo/SoObjects/Appointments/SOGoAppointmentFolder.h index 243b2fcf..1a10c969 100644 --- a/SOGo/SoObjects/Appointments/SOGoAppointmentFolder.h +++ b/SOGo/SoObjects/Appointments/SOGoAppointmentFolder.h @@ -25,6 +25,15 @@ #include +/* + SOGoAppointmentFolder + Parent object: the SOGoUserFolder + Child objects: SOGoAppointmentObject + + The SOGoAppointmentFolder maps to an OCS folder of type 'appointment', that + is, a content folder containing iCalendar files (and a proper quicktable). +*/ + @class NSString, NSArray, NSCalendarDate, NSException; @class OCSFolder; diff --git a/SOGo/SoObjects/Appointments/SOGoGroupAppointmentFolder.h b/SOGo/SoObjects/Appointments/SOGoGroupAppointmentFolder.h new file mode 100644 index 00000000..4dfb99ee --- /dev/null +++ b/SOGo/SoObjects/Appointments/SOGoGroupAppointmentFolder.h @@ -0,0 +1,46 @@ +/* + Copyright (C) 2004 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. +*/ +// $Id: SOGoAppointmentFolder.h 137 2004-07-02 17:42:14Z helge $ + +#ifndef __Appointments_SOGoGroupAppointmentFolder_H__ +#define __Appointments_SOGoGroupAppointmentFolder_H__ + +#include "SOGoAppointmentFolder.h" + +/* + SOGoGroupAppointmentFolder + Parent object: an SOGoGroupFolder (or subclass) + Child objects: SOGoAppointmentObject + + Note: this is only a subclass of SOGoAppointmentFolder to inherit all the + SOPE methods (it provides the same API). It is not an ocsFolder but + rather looks up the "child" folders for aggregation using regular SOPE + techniques. + => hm, do we need "aspects" in SOPE? ;-) +*/ + +@interface SOGoGroupAppointmentFolder : SOGoAppointmentFolder +{ +} + +@end + +#endif /* __Appointments_SOGoGroupAppointmentFolder_H__ */ diff --git a/SOGo/SoObjects/Appointments/SOGoGroupAppointmentFolder.m b/SOGo/SoObjects/Appointments/SOGoGroupAppointmentFolder.m new file mode 100644 index 00000000..7b85a73a --- /dev/null +++ b/SOGo/SoObjects/Appointments/SOGoGroupAppointmentFolder.m @@ -0,0 +1,36 @@ +/* + Copyright (C) 2004 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. +*/ +// $Id: SOGoAppointmentFolder.m 137 2004-07-02 17:42:14Z helge $ + +#include "SOGoGroupAppointmentFolder.h" +#include "common.h" + +@implementation SOGoGroupAppointmentFolder + +#warning TODO: implement aggregation based on the container + +/* looking up shared objects */ + +- (SOGoGroupsFolder *)lookupGroupsFolder { + return [[self container] lookupGroupsFolder]; +} + +@end /* SOGoGroupAppointmentFolder */ diff --git a/SOGo/SoObjects/Appointments/product.plist b/SOGo/SoObjects/Appointments/product.plist index a9cfe621..781de9bc 100644 --- a/SOGo/SoObjects/Appointments/product.plist +++ b/SOGo/SoObjects/Appointments/product.plist @@ -11,6 +11,9 @@ SOGoAppointmentFolder = { superclass = "SOGoFolder"; }; + SOGoGroupAppointmentFolder = { + superclass = "SOGoAppointmentFolder"; + }; SOGoAppointmentObject = { superclass = "SOGoContentObject"; diff --git a/SOGo/SoObjects/SOGo/SOGoGroupFolder.m b/SOGo/SoObjects/SOGo/SOGoGroupFolder.m index 4ab88390..d1f49d21 100644 --- a/SOGo/SoObjects/SOGo/SOGoGroupFolder.m +++ b/SOGo/SoObjects/SOGo/SOGoGroupFolder.m @@ -31,6 +31,11 @@ /* accessors */ +- (NSArray *)uids { + [self logWithFormat:@"ERROR: instantiated abstract Group folder class!"]; + return nil; +} + /* SOPE */ - (BOOL)isFolderish { @@ -39,8 +44,8 @@ /* looking up shared objects */ -- (SOGoGroupFolder *)lookupGroupFolder { - return [[self container] lookupGroupFolder]; +- (SOGoGroupsFolder *)lookupGroupsFolder { + return [[self container] lookupGroupsFolder]; } /* pathes */