idlehomescreen/xmluicontroller/src/aieventhandler.cpp
branchRCL_3
changeset 18 d05a55b217df
parent 12 9674c1a575e9
equal deleted inserted replaced
17:b8fae6b8a148 18:d05a55b217df
    28 #include "xndomnode.h"
    28 #include "xndomnode.h"
    29 #include "xnuiengineappif.h"
    29 #include "xnuiengineappif.h"
    30 #include "xnnodeappif.h"
    30 #include "xnnodeappif.h"
    31 #include "aistrcnv.h"
    31 #include "aistrcnv.h"
    32 
    32 
    33 #include <csxhelp/hmsc.hlp.hrh>
       
    34 #include <hlplch.h>
    33 #include <hlplch.h>
    35 
    34 
    36 using namespace AiXmlUiController;
    35 using namespace AiXmlUiController;
    37 
    36 
    38 // Action Handler LIW commands
    37 // Action Handler LIW commands
    57 const TInt32 KCASpaAppLauncherPlugin = {0x10282E5F};
    56 const TInt32 KCASpaAppLauncherPlugin = {0x10282E5F};
    58 const TUid KVoiceCallUidViewId = { 0x10282D81 };
    57 const TUid KVoiceCallUidViewId = { 0x10282D81 };
    59 const TUid KVideoCallUid = { 0x101F8681 };
    58 const TUid KVideoCallUid = { 0x101F8681 };
    60 
    59 
    61 // ======== LOCAL FUNCTIONS ========
    60 // ======== LOCAL FUNCTIONS ========
    62 // ----------------------------------------------------------------------------
       
    63 // Shows the Homescreen specific help item
       
    64 // ----------------------------------------------------------------------------
       
    65 //
       
    66 static void ShowHelpL( const TDesC& aHelpString )
       
    67     {
       
    68     TUid fwUid = TUid::Uid( AI_UID3_AIFW_COMMON );
       
    69     TCoeContextName helpString;
       
    70     helpString.Copy( aHelpString );
       
    71     
       
    72     CArrayFixFlat<TCoeHelpContext>* array = 
       
    73     new (ELeave) CArrayFixFlat<TCoeHelpContext>(1);
       
    74     CleanupStack::PushL( array );
       
    75     
       
    76     array->AppendL( TCoeHelpContext( fwUid, helpString ) );
       
    77     
       
    78     HlpLauncher::LaunchHelpApplicationL( 
       
    79     CCoeEnv::Static()->WsSession(), array );
       
    80     
       
    81     CleanupStack::Pop( array );
       
    82     }
       
    83 
    61 
    84 // ---------------------------------------------------------------------------
    62 // ---------------------------------------------------------------------------
    85 // Activates Phone application either in video call or normal view
    63 // Activates Phone application either in video call or normal view
    86 // ---------------------------------------------------------------------------
    64 // ---------------------------------------------------------------------------
    87 //
    65 //
   173             {
   151             {
   174             iUiController.AppUi()->SetOnlineStateL( EFalse );
   152             iUiController.AppUi()->SetOnlineStateL( EFalse );
   175             }    
   153             }    
   176         else if ( event == AiUiDef::xml::event::KEventShowHelp )
   154         else if ( event == AiUiDef::xml::event::KEventShowHelp )
   177             {
   155             {
   178             if( iUiController.UiEngineL()->IsEditMode() )
   156             HlpLauncher::LaunchHelpApplicationL(
   179                 {
   157                 CCoeEnv::Static()->WsSession(), 
   180                 ShowHelpL( KSET_HLP_HOME_SCREEN_EDIT );
   158         		CCoeEnv::Static()->AppUi()->AppHelpContextL() );
   181                 }
       
   182             else
       
   183                 {
       
   184                 ShowHelpL( KSET_HLP_HOME_SCREEN );
       
   185                 }
       
   186             }
   159             }
   187         else if ( event == AiUiDef::xml::event::KEventActivatePhoneView )
   160         else if ( event == AiUiDef::xml::event::KEventActivatePhoneView )
   188             {
   161             {
   189             ActivatePhoneViewL( iUiController );
   162             ActivatePhoneViewL( iUiController );
   190             }
   163             }