#import <NGExtensions/NSCalendarDate+misc.h>
-#import <SOGo/SOGoUser.h>
-#import <SOGoUI/SOGoDateFormatter.h>
+#import <SoObjects/SOGo/SOGoUser.h>
+#import <SoObjects/SOGo/SOGoDateFormatter.h>
#import "UIxCalMulticolumnDayView.h"
{
if ((self = [super init]))
{
- allAppointments = nil;
+// allAppointments = nil;
subscriptionUsers = nil;
hoursToDisplay = nil;
currentTableUser = nil;
currentTableHour = nil;
- dateFormatter = [[SOGoDateFormatter alloc]
- initWithLocale: [self locale]];
+// dateFormatter = [[SOGoDateFormatter alloc]
+// initWithLocale: [self locale]];
}
return self;
- (void) dealloc
{
- if (allAppointments)
- [allAppointments release];
- if (subscriptionUsers)
- [subscriptionUsers release];
- if (hoursToDisplay)
- [hoursToDisplay release];
- [dateFormatter release];
+// [allAppointments release];
+ [subscriptionUsers release];
+ [hoursToDisplay release];
+// [dateFormatter release];
[super dealloc];
}
/* fetching */
-- (NSCalendarDate *) startDate
-{
- return [[self selectedDate] beginOfDay];
-}
-
-- (NSCalendarDate *) endDate
-{
- return [[self selectedDate] endOfDay];
-}
-
-- (NSArray *) appointmentsForCurrentUser
-{
- NSMutableArray *filteredAppointments;
- NSEnumerator *aptsEnumerator;
- NSDictionary *userAppointment;
- NSCalendarDate *start, *end;
- int endHour;
-
- if (!allAppointments)
- {
- allAppointments = [self fetchCoreAppointmentsInfos];
- [allAppointments retain];
- }
-
- start = [[self selectedDate] hour: [self dayStartHour] minute: 0];
- endHour = [self dayEndHour];
- if (endHour < 24)
- end = [[self selectedDate] hour: [self dayEndHour] minute: 59];
- else
- end = [[[self selectedDate] tomorrow] hour: 0 minute: 0];
-
- filteredAppointments = [NSMutableArray new];
- [filteredAppointments autorelease];
-
- aptsEnumerator = [allAppointments objectEnumerator];
- userAppointment = [aptsEnumerator nextObject];
- while (userAppointment)
- {
- if ([[userAppointment objectForKey: @"owner"]
- isEqualToString: currentTableUser])
- [filteredAppointments
- addObject: [self _adjustedAppointment: userAppointment
- forStart: start andEnd: end]];
- userAppointment = [aptsEnumerator nextObject];
- }
-
- return filteredAppointments;
-}
-
-- (void) setCurrentAppointment: (NSDictionary *) newCurrentAppointment
-{
- currentAppointment = newCurrentAppointment;
-}
-
-- (NSDictionary *) currentAppointment
-{
- return currentAppointment;
-}
-
-- (NSString *) appointmentsClasses
-{
- return @"appointments appointmentsFor1Days";
-}
+// - (NSCalendarDate *) startDate
+// {
+// return [[self selectedDate] beginOfDay];
+// }
+
+// - (NSCalendarDate *) endDate
+// {
+// return [[self selectedDate] endOfDay];
+// }
+
+// - (NSArray *) appointmentsForCurrentUser
+// {
+// NSMutableArray *filteredAppointments;
+// NSEnumerator *aptsEnumerator;
+// NSDictionary *userAppointment;
+// NSCalendarDate *start, *end;
+// int endHour;
+
+// if (!allAppointments)
+// {
+// allAppointments = [self fetchCoreAppointmentsInfos];
+// [allAppointments retain];
+// }
+
+// start = [[self selectedDate] hour: [self dayStartHour] minute: 0];
+// endHour = [self dayEndHour];
+// if (endHour < 24)
+// end = [[self selectedDate] hour: [self dayEndHour] minute: 59];
+// else
+// end = [[[self selectedDate] tomorrow] hour: 0 minute: 0];
+
+// filteredAppointments = [NSMutableArray new];
+// [filteredAppointments autorelease];
+
+// aptsEnumerator = [allAppointments objectEnumerator];
+// userAppointment = [aptsEnumerator nextObject];
+// while (userAppointment)
+// {
+// if ([[userAppointment objectForKey: @"owner"]
+// isEqualToString: currentTableUser])
+// [filteredAppointments
+// addObject: [self _adjustedAppointment: userAppointment
+// forStart: start andEnd: end]];
+// userAppointment = [aptsEnumerator nextObject];
+// }
+
+// return filteredAppointments;
+// }
+
+// - (void) setCurrentAppointment: (NSDictionary *) newCurrentAppointment
+// {
+// currentAppointment = newCurrentAppointment;
+// }
+
+// - (NSDictionary *) currentAppointment
+// {
+// return currentAppointment;
+// }
+
+// - (NSString *) appointmentsClasses
+// {
+// return @"appointments appointmentsFor1Days";
+// }
- (NSString *) currentUserClasses
{