25 #include <calinstanceview.h> |
25 #include <calinstanceview.h> |
26 #include <calencontext.h> |
26 #include <calencontext.h> |
27 #include <caleninstanceid.h> // TCalenInstanceId |
27 #include <caleninstanceid.h> // TCalenInstanceId |
28 #include <calenactionuiutils.h> |
28 #include <calenactionuiutils.h> |
29 #include <aknappui.h> |
29 #include <aknappui.h> |
30 #include <AknDlgShut.h> |
30 #include <AknDlgShut.h> |
|
31 #include <gfxtranseffect/gfxtranseffect.h> // For transition effects |
|
32 #include <akntranseffect.h> // For transition effects |
|
33 |
31 #include "calenviewmanager.h" |
34 #include "calenviewmanager.h" |
32 #include "calencmdlinelauncher.h" |
35 #include "calencmdlinelauncher.h" |
33 #include "calencontroller.h" // CCalenController |
36 #include "calencontroller.h" // CCalenController |
34 #include "calencmdlineparser.h" // CCalCmdLineParser |
37 #include "calencmdlineparser.h" // CCalCmdLineParser |
35 #include "CalenUid.h" |
38 #include "CalenUid.h" |
36 #include "calensend.h" |
39 #include "calensend.h" |
37 #include "calendialogshutter.h" |
40 #include "calendialogshutter.h" |
|
41 |
|
42 const TUid KCalendarUid = {0x10005901}; // Calendar application UID |
38 |
43 |
39 // ================= MEMBER FUNCTIONS ======================= |
44 // ================= MEMBER FUNCTIONS ======================= |
40 |
45 |
41 // --------------------------------------------------------- |
46 // --------------------------------------------------------- |
42 // CCalenCmdLineLauncher::CCalenCmdLineLauncher |
47 // CCalenCmdLineLauncher::CCalenCmdLineLauncher |
248 } |
253 } |
249 } |
254 } |
250 |
255 |
251 context.SetFocusDateAndTimeL( focusTime, |
256 context.SetFocusDateAndTimeL( focusTime, |
252 TVwsViewId( KUidCalendar, viewUid ) ); |
257 TVwsViewId( KUidCalendar, viewUid ) ); |
|
258 //Themes effect while launching. |
|
259 GfxTransEffect::BeginFullScreen( AknTransEffect::EApplicationStart,TRect(), AknTransEffect::EParameterType, AknTransEffect::GfxTransParam(KCalendarUid, |
|
260 AknTransEffect::TParameter::EActivateExplicitContinue ) ); |
|
261 |
253 if( iController.ViewManager().ViewsActivated() ) |
262 if( iController.ViewManager().ViewsActivated() ) |
254 { |
263 { |
255 iController.IssueCommandL( command ); |
264 iController.IssueCommandL( command ); |
256 iController.SetLaunchFromExternalApp( ETrue ); |
265 iController.SetLaunchFromExternalApp( ETrue ); |
257 } |
266 } |
282 #endif // RD_NO_EDIT_REPEATING_TODO_DAYNOTE |
291 #endif // RD_NO_EDIT_REPEATING_TODO_DAYNOTE |
283 ) |
292 ) |
284 { |
293 { |
285 if( iCmdParameters.iCommandType == CCalenCmdLineParser::EStartTypeUidAlarmViewer ) |
294 if( iCmdParameters.iCommandType == CCalenCmdLineParser::EStartTypeUidAlarmViewer ) |
286 { |
295 { |
|
296 //When event viewer launched from alarm only we need to ignore tap. (ETrue) |
|
297 iController.BroadcastNotification(ECalenNotifyEventViewLaunchedFromAlarm); |
287 if(! iController.ViewManager().ViewsActivated() ) |
298 if(! iController.ViewManager().ViewsActivated() ) |
288 { |
299 { |
289 iController.ViewManager().ActivateDefaultViewL( KUidCalenEventView); |
300 iController.ViewManager().ActivateDefaultViewL( KUidCalenEventView); |
290 } |
301 } |
291 // start in alarm viewer mode |
302 // start in alarm viewer mode |
292 iController.IssueCommandL( ECalenEventViewFromAlarm ); |
303 iController.IssueCommandL( ECalenEventViewFromAlarm ); |
293 } |
304 } |
294 else if( iCmdParameters.iCommandType == CCalenCmdLineParser::EStartTypeUidAlarmViewerNoSnooze ) |
305 else if( iCmdParameters.iCommandType == CCalenCmdLineParser::EStartTypeUidAlarmViewerNoSnooze ) |
295 { |
306 { |
|
307 //When event viewer launched from alarm only we need to ignore tap. (ETrue) |
|
308 iController.BroadcastNotification(ECalenNotifyEventViewLaunchedFromAlarm); |
296 if(! iController.ViewManager().ViewsActivated() ) |
309 if(! iController.ViewManager().ViewsActivated() ) |
297 { |
310 { |
298 iController.ViewManager().ActivateDefaultViewL( KUidCalenEventView); |
311 iController.ViewManager().ActivateDefaultViewL( KUidCalenEventView); |
299 } |
312 } |
300 // start in alarm viewer mode (snooze key not available) |
313 // start in alarm viewer mode (snooze key not available) |