voiceui/voiceuivoicerecognition/src/vuicprecheckstate.cpp
branchRCL_3
changeset 11 6347473a7bb2
parent 7 f096c31e006a
equal deleted inserted replaced
9:fc313e1df071 11:6347473a7bb2
   212 	{
   212 	{
   213 	//fix for the error ECWG-7WDA9G,if we found the first windows is "lockphone" dialog we will terminate the App.
   213 	//fix for the error ECWG-7WDA9G,if we found the first windows is "lockphone" dialog we will terminate the App.
   214 	TBool islock = EFalse;
   214 	TBool islock = EFalse;
   215 	RWsSession &ws = CCoeEnv::Static()->WsSession();
   215 	RWsSession &ws = CCoeEnv::Static()->WsSession();
   216 	TInt wgId = ws.GetFocusWindowGroup(); 
   216 	TInt wgId = ws.GetFocusWindowGroup(); 
   217 	CApaWindowGroupName *WindowsGroupName = CApaWindowGroupName::NewL( ws, wgId );
   217 	CApaWindowGroupName *WindowsGroupName = CApaWindowGroupName::NewLC( ws, wgId );
   218 	if ( ( KAknnfysrvUid == WindowsGroupName->AppUid() ) && 
   218 	if ( ( KAknnfysrvUid == WindowsGroupName->AppUid() ) && 
   219 	      ( ws.GetWindowGroupOrdinalPriority( wgId ) >= ECoeWinPriorityAlwaysAtFront ) )
   219 	      ( ws.GetWindowGroupOrdinalPriority( wgId ) >= ECoeWinPriorityAlwaysAtFront ) )
   220 	    {
   220 	    {
   221 	    islock = ETrue;
   221 	    islock = ETrue;
   222 	    }
   222 	    }
       
   223 	CleanupStack::PopAndDestroy( WindowsGroupName );
   223 	return islock;
   224 	return islock;
   224 	}
   225 	}
   225     
   226     
   226 // End of File
   227 // End of File
   227 
   228