equal
deleted
inserted
replaced
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 MCalenContext &context = iGlobalData->Context(); |
922 TTime& activeTimeRef = activeTime; |
923 /*TTime& activeTimeRef = activeTime; |
923 MCalenContext &context = iGlobalData->Context(); |
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 |