#include "SOGoAuthenticator.h"
#include "SOGoProductLoader.h"
+#include <SOGo/SOGoUserFolder.h>
#include "common.h"
@implementation SOGo
}
- (id)lookupUser:(NSString *)_key inContext:(id)_ctx {
- //return [DSoUser dUserWithName:hostName port:port];
- return nil;
+ return [[[SOGoUserFolder alloc] initWithName:_key inContainer:self]
+ autorelease];
}
- (id)lookupName:(NSString *)_key inContext:(id)_ctx acquire:(BOOL)_flag {
SOGoObject.h \
SOGoFolder.h \
SOGoContentObject.h \
+ SOGoUserFolder.h \
libSOGo_OBJC_FILES = \
SOGoObject.m \
SOGoFolder.m \
SOGoContentObject.m \
+ SOGoUserFolder.m \
-include GNUmakefile.preamble
include $(GNUSTEP_MAKEFILES)/library.make
* GNUmakefile: patches for different build/runtime environment
* created ChangeLog
-
include $(GNUSTEP_MAKEFILES)/common.make
BUNDLE_NAME = SchedulerUI
-BUNDLE_EXTENSION = .zsp
-BUNDLE_INSTALL_DIR = $(GNUSTEP_USER_ROOT)/Library/ZideStore12
+BUNDLE_EXTENSION = .SOGo
+BUNDLE_INSTALL_DIR = $(GNUSTEP_USER_ROOT)/Library/SOGo
SchedulerUI_PRINCIPAL_CLASS = SchedulerUIProduct
UIxCalWeekOverview.wox \
UIxCalMonthOverview.wox \
UIxAppointmentView.wox \
- UIxAppointmentEditor.wox \
- UIxCalSelectTab.wox \
- UIxCalDateLabel.wox \
- UIxCalBackForthNavView.wox \
+ UIxAppointmentEditor.wox \
+ UIxCalSelectTab.wox \
+ UIxCalDateLabel.wox \
+ UIxCalBackForthNavView.wox \
images/next_week.gif \
- images/previous_week.gif \
- images/icon_apt_chart.gif \
- images/icon_apt_overview.gif \
- images/icon_apt_chart_inactive.gif \
- images/icon_apt_overview_inactive.gif \
- images/icon_apt_column_view.gif \
- images/icon_apt_list.gif \
- images/icon_apt_list_inactive.gif \
+ images/previous_week.gif \
+ images/icon_apt_chart.gif \
+ images/icon_apt_overview.gif \
+ images/icon_apt_chart_inactive.gif \
+ images/icon_apt_overview_inactive.gif \
+ images/icon_apt_column_view.gif \
+ images/icon_apt_list.gif \
+ images/icon_apt_list_inactive.gif \
-ifeq ($(FOUNDATION_LIB),apple)
-ZIDESTORE=$(GNUSTEP_USER_ROOT)/Library/Headers/ZideStore12
-else
-ZIDESTORE=$(GNUSTEP_USER_ROOT)/Headers/ZideStore12
-endif
-
-ADDITIONAL_INCLUDE_DIRS += \
- -I. \
- -I.. \
- -I$(ZIDESTORE)/Frontend -I$(ZIDESTORE)/Backend \
- -I$(ZIDESTORE) -I$(ZIDESTORE)/Common
-
# make
-include GNUmakefile.preamble
@implementation NSObject (AppointmentHack)
- (BOOL)isAppointment {
- return [self isKindOfClass:NSClassFromString(@"SxAppointment")];
+ return [self isKindOfClass:NSClassFromString(@"SOGoAppointmentObject")];
}
@end
#include "UIxAppointmentView.h"
#include "common.h"
-#include <Backend/SxAptManager.h>
#include <SOGoLogic/SOGoAppointment.h>
-
-@interface NSObject(UsedPrivates)
-- (SxAptManager *)aptManagerInContext:(id)_ctx;
-@end
-
@implementation UIxAppointmentView
- (void)dealloc {
/* backend */
-- (SxAptManager *)aptManager {
- return [[self clientObject] aptManagerInContext:[self context]];
-}
-
- (SOGoAppointment *)appointment {
if(self->appointment == nil) {
NSString *iCalString;
#include <Common/UIxComponent.h>
@class NSArray, NSCalendarDate;
-@class SxAptManager, SxAptSetIdentifier;
@interface UIxCalView : UIxComponent
{
/* backend */
-- (SxAptManager *)aptManager;
-- (SxAptSetIdentifier *)aptSetID;
-
/* fetching */
- (NSCalendarDate *)startDate;
#include "UIxCalView.h"
#include "common.h"
-#include <Backend/SxAptManager.h>
#include "UIxAppointmentFormatter.h"
-@interface NSObject(UsedPrivates)
-- (SxAptManager *)aptManagerInContext:(id)_ctx;
-@end
-
@implementation UIxCalView
- (void)dealloc {
[self->appointment release];
[self->appointments release];
- [self->currentDay release];
+ [self->currentDay release];
[super dealloc];
}
/* accessors */
-
- (void)setAppointments:(NSArray *)_apts {
ASSIGN(self->appointments, _apts);
}
/* backend */
-- (SxAptManager *)aptManager {
- return [[self clientObject] aptManagerInContext:[self context]];
-}
-- (SxAptSetIdentifier *)aptSetID {
- return [[self clientObject] aptSetID];
-}
-
/* resource URLs (TODO?) */
- (NSString *)resourcePath {
- return @"/ZideStore.woa/WebServerResources/";
+ return @"/sogod.woa/WebServerResources/";
}
- (NSString *)favIconPath {
NSString *path;
// TODO: there should be reusable functionality for that!
+#warning ZideStore specific?
path = @"ControlPanel/Products/ZideStoreUI/Resources/zidestoreui.css";
return [[self context] urlWithRequestHandlerKey:@"so"
path:path
NSString *path;
// TODO: there should be reusable functionality for that!
+#warning ZideStore specific?
path = @"ControlPanel/Products/ZideStoreUI/Resources/calendar.css";
return [[self context] urlWithRequestHandlerKey:@"so"
path:path
}
- (NSArray *)fetchGIDs {
+#warning ZIDESTORE FETCH BACKEND
+#if 0
return [[self aptManager] gidsOfAppointmentSet:[self aptSetID]
from:[self startDate] to:[self endDate]];
+#else
+ return nil;
+#endif
}
- (NSArray *)fetchCoreInfos {
gids = [self fetchGIDs];
[self logWithFormat:@" %i GIDs ...", [gids count]];
+#warning ZIDESTORE FETCH BACKEND
+#if 0
self->appointments =
[[[self aptManager] coreInfoOfAppointmentsWithGIDs:gids
inSet:[self aptSetID]] retain];
+#else
+ self->appointments = nil;
+#endif
[self logWithFormat:@"fetched %i records.", [self->appointments count]];
return self->appointments;
@end
#include "common.h"
-#include <Backend/SxAptManager.h>
-
@implementation UIxCalWeekOverview
};
categories = {
- SxAppointmentFolder = {
+ SOGoAppointmentFolder = {
methods = {
"weekoverview" = {
protectedBy = "View";
};
};
- SxAppointment = {
+ SOGoAppointmentObject = {
methods = {
"view" = {
protectedBy = "View";