+2004-08-11 <helge@agenor.opengroupware.org>
+
+ * started SOGoGroupAppointmentFolder
+
2004-07-02 Helge Hess <helge.hess@opengroupware.org>
* SOGoAppointmentFolder.m: added method to fetch core info from other
\
SOGoAppointmentObject.m \
SOGoAppointmentFolder.m \
+ SOGoGroupAppointmentFolder.m \
Appointments_RESOURCE_FILES += \
Version \
#include <SOGo/SOGoFolder.h>
+/*
+ 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;
--- /dev/null
+/*
+ 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__ */
--- /dev/null
+/*
+ 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 */
SOGoAppointmentFolder = {
superclass = "SOGoFolder";
};
+ SOGoGroupAppointmentFolder = {
+ superclass = "SOGoAppointmentFolder";
+ };
SOGoAppointmentObject = {
superclass = "SOGoContentObject";
/* accessors */
+- (NSArray *)uids {
+ [self logWithFormat:@"ERROR: instantiated abstract Group folder class!"];
+ return nil;
+}
+
/* SOPE */
- (BOOL)isFolderish {
/* looking up shared objects */
-- (SOGoGroupFolder *)lookupGroupFolder {
- return [[self container] lookupGroupFolder];
+- (SOGoGroupsFolder *)lookupGroupsFolder {
+ return [[self container] lookupGroupsFolder];
}
/* pathes */