equal
deleted
inserted
replaced
23 #include "calendarui_debug.h" |
23 #include "calendarui_debug.h" |
24 #include "calenviewpopulator.h" |
24 #include "calenviewpopulator.h" |
25 #include "calencontroller.h" |
25 #include "calencontroller.h" |
26 #include "calenglobaldata.h" |
26 #include "calenglobaldata.h" |
27 #include "calennotifier.h" |
27 #include "calennotifier.h" |
|
28 |
|
29 #include <eikenv.h> // For CEikonEnv |
|
30 #include <apgtask.h> |
28 |
31 |
29 // ---------------------------------------------------------------------------- |
32 // ---------------------------------------------------------------------------- |
30 // CCalenViewPopulator::NewL |
33 // CCalenViewPopulator::NewL |
31 // 1st phase of construction |
34 // 1st phase of construction |
32 // (other items were commented in a header). |
35 // (other items were commented in a header). |
190 break; |
193 break; |
191 case CCalenView::EDone: |
194 case CCalenView::EDone: |
192 { |
195 { |
193 iPopulatingView = NULL; |
196 iPopulatingView = NULL; |
194 iController.Notifier().BroadcastNotification( ECalenNotifyViewPopulationComplete ); |
197 iController.Notifier().BroadcastNotification( ECalenNotifyViewPopulationComplete ); |
|
198 |
|
199 if( iController.IsLaunchFromExternalApp() ) |
|
200 { |
|
201 CEikonEnv* eikenv = CEikonEnv::Static(); |
|
202 iController.SetLaunchFromExternalApp( EFalse ); |
|
203 const TUid KCalendarAppUID = { 0x10005901 }; |
|
204 TApaTaskList taskList( eikenv->WsSession() ); |
|
205 TApaTask task = taskList.FindApp( KCalendarAppUID ); |
|
206 task.BringToForeground(); |
|
207 } |
195 } |
208 } |
196 break; |
209 break; |
197 default: |
210 default: |
198 ASSERT( EFalse ); |
211 ASSERT( EFalse ); |
199 break; |
212 break; |