]> err.no Git - scalable-opengroupware.org/blobdiff - UI/Scheduler/UIxCalMulticolumnDayView.m
git-svn-id: http://svn.opengroupware.org/SOGo/inverse/trunk@1163 d1b88da0-ebda-0310...
[scalable-opengroupware.org] / UI / Scheduler / UIxCalMulticolumnDayView.m
index 975d1c2d0bac9fdae9412068867f1fac37da7117..d43c333bd2f352a882904d18ae9aa705d5f3af31 100644 (file)
@@ -27,8 +27,8 @@
 
 #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
 {