phonesrv_plat/call_information_api/tsrc/src/CPhoneEngineCreator.cpp
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
    15 *
    15 *
    16 */
    16 */
    17 #include "CPhoneEngineCreator.h"
    17 #include "CPhoneEngineCreator.h"
    18 
    18 
    19 #include <TelephonyAudioRoutingManager.h>
    19 #include <TelephonyAudioRoutingManager.h>
    20 #include <cpephonemodelif.h>
    20 #include <activeidle2domainpskeys.h>
       
    21 #include <CPEPhoneModelIf.h>
    21 #include "CPEMessageWaiter.h"
    22 #include "CPEMessageWaiter.h"
    22 
    23 
    23 
    24 
    24 CPhoneEngineCreator* CPhoneEngineCreator::NewL()
    25 CPhoneEngineCreator* CPhoneEngineCreator::NewL()
    25     {
    26     {
    56         {
    57         {
    57         aMsgWaiter.WaitForMsg(
    58         aMsgWaiter.WaitForMsg(
    58                 MEngineMonitor::EPEMessagePEConstructionReady,
    59                 MEngineMonitor::EPEMessagePEConstructionReady,
    59                 40 );
    60                 40 );
    60         }    
    61         }    
    61 
    62     
       
    63     // No error checking here because this will succeed only once when this is called. The RProperty::Set will
       
    64     // fail, if this call is not successfull at all.
       
    65     RProperty::Define( 
       
    66         KPSUidAiInformation,
       
    67         KActiveIdleState,
       
    68         RProperty::EInt );
       
    69                             
       
    70     User::LeaveIfError( RProperty::Set( KPSUidAiInformation, KActiveIdleState, EPSAiForeground ) ); 
       
    71     
    62     return pEif;
    72     return pEif;
    63     }
    73     }
    64 
    74 
    65 CStubAudioFactory* CPhoneEngineCreator::AudioFactory() const
    75 CStubAudioFactory* CPhoneEngineCreator::AudioFactory() const
    66     {
    76     {