calendarui/controller/src/caleneditui.cpp
branchRCL_3
changeset 60 96907930389d
parent 27 55d60436f00b
child 65 12af337248b1
equal deleted inserted replaced
59:aba12c885d83 60:96907930389d
   917     // CFD = Currently Focused Date, the one shown in Navigator toolbar
   917     // CFD = Currently Focused Date, the one shown in Navigator toolbar
   918     // FCT = Focused Cell's Time, applicable only to Week View
   918     // FCT = Focused Cell's Time, applicable only to Week View
   919     // (*) Alarm Default times are also set using the values
   919     // (*) Alarm Default times are also set using the values
   920         
   920         
   921     TTime activeTime(Time::NullTTime()); // initialize with NULL time
   921     TTime activeTime(Time::NullTTime()); // initialize with NULL time
   922     TTime& activeTimeRef = activeTime;
   922 	MCalenContext &context = iGlobalData->Context();
   923     MCalenContext &context = iGlobalData->Context();
   923     /*TTime& activeTimeRef = activeTime;
   924     TUid currentView = iController.ViewManager().CurrentView();
   924     TUid currentView = iController.ViewManager().CurrentView();
   925     if(currentView == KUidCalenWeekView)
   925     if(currentView == KUidCalenWeekView)
   926         {
   926         {
   927         // use CFD
   927         // use CFD
   928          activeTime = CalenDateUtils::BeginningOfDay( 
   928          activeTime = CalenDateUtils::BeginningOfDay( 
   943              activeTime += CalenDateUtils::TimeOfDay( 
   943              activeTime += CalenDateUtils::TimeOfDay( 
   944                      context.FocusDateAndTimeL().TimeLocalL().DateTime() );
   944                      context.FocusDateAndTimeL().TimeLocalL().DateTime() );
   945              }
   945              }
   946          }
   946          }
   947     else
   947     else
   948         {
   948         {*/
   949         // use Today @ 8 am
   949         // use Today @ 8 am
   950         activeTime = CalenDateUtils::Today();
   950         activeTime = CalenDateUtils::Today();
   951         activeTime = CalenDateUtils::DefaultTime(context.FocusDateAndTimeL().TimeLocalL()); // 8 am
   951         activeTime = CalenDateUtils::DefaultTime(context.FocusDateAndTimeL().TimeLocalL()); // 8 am
   952         }
   952         //}
   953     
   953     
   954     TRACE_EXIT_POINT;
   954     TRACE_EXIT_POINT;
   955     return activeTime;
   955     return activeTime;
   956     }
   956     }
   957 
   957