calendarui/controller/src/calencmdlinelauncher.cpp
branchRCL_3
changeset 28 96907930389d
parent 25 bf573002ff72
--- a/calendarui/controller/src/calencmdlinelauncher.cpp	Thu Jul 15 18:37:27 2010 +0300
+++ b/calendarui/controller/src/calencmdlinelauncher.cpp	Thu Aug 19 09:53:43 2010 +0300
@@ -27,7 +27,10 @@
 #include <caleninstanceid.h>            // TCalenInstanceId
 #include <calenactionuiutils.h>
 #include <aknappui.h>
-#include <AknDlgShut.h> 
+#include <AknDlgShut.h>
+#include <gfxtranseffect/gfxtranseffect.h>  // For transition effects
+#include <akntranseffect.h>                 // For transition effects
+
 #include "calenviewmanager.h"
 #include "calencmdlinelauncher.h"
 #include "calencontroller.h"            // CCalenController
@@ -36,6 +39,8 @@
 #include "calensend.h"
 #include "calendialogshutter.h"
 
+const TUid KCalendarUid             = {0x10005901};         // Calendar application UID
+
 // ================= MEMBER FUNCTIONS =======================
 
 // ---------------------------------------------------------
@@ -250,6 +255,10 @@
              
           	  context.SetFocusDateAndTimeL( focusTime,
                                          TVwsViewId( KUidCalendar, viewUid ) );
+          	//Themes effect while launching.
+          	GfxTransEffect::BeginFullScreen( AknTransEffect::EApplicationStart,TRect(), AknTransEffect::EParameterType, AknTransEffect::GfxTransParam(KCalendarUid,
+          	AknTransEffect::TParameter::EActivateExplicitContinue ) );
+          	
             if( iController.ViewManager().ViewsActivated() )
                 {
                 iController.IssueCommandL( command );
@@ -284,6 +293,8 @@
         		{
 		        if( iCmdParameters.iCommandType == CCalenCmdLineParser::EStartTypeUidAlarmViewer )
               		{
+                    //When event viewer launched from alarm only we need to ignore tap. (ETrue)     
+		            iController.BroadcastNotification(ECalenNotifyEventViewLaunchedFromAlarm);
               		if(! iController.ViewManager().ViewsActivated() )                    
                         {
                         iController.ViewManager().ActivateDefaultViewL( KUidCalenEventView); 
@@ -293,6 +304,8 @@
                     }
                 else if( iCmdParameters.iCommandType == CCalenCmdLineParser::EStartTypeUidAlarmViewerNoSnooze )
                     {
+                    //When event viewer launched from alarm only we need to ignore tap. (ETrue)     
+                    iController.BroadcastNotification(ECalenNotifyEventViewLaunchedFromAlarm);
                     if(! iController.ViewManager().ViewsActivated() )                    
                         {
                         iController.ViewManager().ActivateDefaultViewL( KUidCalenEventView);