commsconfig/cscapplicationui/src/cscappui.cpp
branchRCL_3
changeset 11 bddb6d4447db
parent 10 7117cbf1600a
equal deleted inserted replaced
10:7117cbf1600a 11:bddb6d4447db
    29 #include <xSPViewServices.h>
    29 #include <xSPViewServices.h>
    30 #include <AiwServiceHandler.h>
    30 #include <AiwServiceHandler.h>
    31 #include <mspnotifychangeobserver.h>
    31 #include <mspnotifychangeobserver.h>
    32 #include <gsfwviewuids.h>
    32 #include <gsfwviewuids.h>
    33 #include <apgwgnam.h>
    33 #include <apgwgnam.h>
    34 #include <csc.hlp.hrh>
       
    35 
    34 
    36 #include "cscappui.h"
    35 #include "cscappui.h"
    37 #include "csclogger.h"
    36 #include "csclogger.h"
    38 #include "cscdocument.h"
    37 #include "cscdocument.h"
    39 #include "cscconstants.h"
    38 #include "cscconstants.h"
   500                     CApaWindowGroupName::NewLC( ws, wginfo.iId ); // CS:1
   499                     CApaWindowGroupName::NewLC( ws, wginfo.iId ); // CS:1
   501                 TUid embeddeeuid;
   500                 TUid embeddeeuid;
   502                 embeddeeuid = windowName1->AppUid();
   501                 embeddeeuid = windowName1->AppUid();
   503 
   502 
   504                 // Check if CSC is the child of GS
   503                 // Check if CSC is the child of GS
   505                 if ( KUidCscHelp == embeddeeuid )
   504                 if ( KUidCSCApp == embeddeeuid )
   506                     {
   505                     {
   507                     ret = ETrue;
   506                     ret = ETrue;
   508                     gstask.EndTask();
   507                     gstask.EndTask();
   509                     }
   508                     }
   510                 CleanupStack::PopAndDestroy( windowName1 );  // CS:0
   509                 CleanupStack::PopAndDestroy( windowName1 );  // CS:0
   513         wgrp.Close();
   512         wgrp.Close();
   514         }
   513         }
   515     
   514     
   516     return ret;
   515     return ret;
   517     }
   516     }
       
   517 
       
   518 // ---------------------------------------------------------------------------
       
   519 // Handle view change messages (e.g. from MeCo)
       
   520 // ---------------------------------------------------------------------------
       
   521 //
       
   522 MCoeMessageObserver::TMessageResponse CCSCAppUi::HandleMessageL(
       
   523     TUint32 /*aClientHandleOfTargetWindowGroup*/, TUid aMessageUid,
       
   524     const TDesC8& aMessageParameters )
       
   525     {
       
   526     CSCDEBUG( "CCSCAppUi::HandleMessageL - begin" ); 
       
   527 
       
   528     MCoeMessageObserver::TMessageResponse ret = EMessageNotHandled;
       
   529 
       
   530     if ( TUid::Uid( KUidApaMessageSwitchOpenFileValue ) == aMessageUid &&
       
   531         aMessageParameters.Length() &&
       
   532         aMessageParameters.Length() <= KMaxParamLength )
       
   533         {
       
   534         TBuf<KMaxParamLength> params;
       
   535         params.Copy( aMessageParameters );  
       
   536         iStartupHandler->SetStartupParametersL( params );
       
   537             
       
   538         iServiceView->InitializeWithStartupParametersL();
       
   539         iServiceView->ExecuteStartupActionsL( EFalse, EFalse );
       
   540         
       
   541         ret = EMessageHandled;
       
   542         }
       
   543 
       
   544     CSCDEBUG( "CCSCAppUi::HandleMessageL - end" ); 
       
   545     return ret;
       
   546     }