calendarui/controller/src/calenviewmanager.cpp
branchRCL_3
changeset 36 9c5b1510919f
parent 30 d68a4b5d5885
child 59 aba12c885d83
--- a/calendarui/controller/src/calenviewmanager.cpp	Tue May 25 12:41:10 2010 +0300
+++ b/calendarui/controller/src/calenviewmanager.cpp	Wed Jun 09 09:40:23 2010 +0300
@@ -578,6 +578,14 @@
             RequestActivationL( KUidCalenDayView, KUidCalenShowBackCba );
             }
             break;
+        case ECalenForwardsToWeekView:
+            {
+            // set the view iPreviousToWeekView to handle the week view's cba
+            // From month view -> week view 
+            iPreviousToWeekView = iCurrentViewId;
+            RequestActivationL( KUidCalenWeekView, KUidCalenShowBackCba );
+            }
+            break;
         case ECalenNextView:
             {
             CycleNextViewL();
@@ -1102,6 +1110,10 @@
 			    
 			    ReloadAllPluginsL();
 			    }
+            else
+                {
+                iAvoidRepopulation = EFalse;
+                }
         	}
         	break;
         case ECalenNotifyDayViewClosed:
@@ -1114,6 +1126,16 @@
                 }
             }
             break;
+        case ECalenNotifyWeekViewClosed:
+            {
+            if(iPreviousToWeekView.iViewUid!= KNullUid)
+                {
+                // activate the previous view from where day view is launched
+                // From month/week view -> day view
+                RequestActivationL(iPreviousToWeekView.iViewUid);
+                }
+            }
+            break;
         case ECalenNotifyAppBackgrounded:
             {
             // set the flag iAvoidRepopulation to prevent repopulation