phonesrv_plat/call_information_api/tsrc/src/CPhoneEngineCreator.cpp
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
--- a/phonesrv_plat/call_information_api/tsrc/src/CPhoneEngineCreator.cpp	Tue Aug 31 15:45:17 2010 +0300
+++ b/phonesrv_plat/call_information_api/tsrc/src/CPhoneEngineCreator.cpp	Wed Sep 01 12:15:03 2010 +0100
@@ -17,7 +17,8 @@
 #include "CPhoneEngineCreator.h"
 
 #include <TelephonyAudioRoutingManager.h>
-#include <cpephonemodelif.h>
+#include <activeidle2domainpskeys.h>
+#include <CPEPhoneModelIf.h>
 #include "CPEMessageWaiter.h"
 
 
@@ -58,7 +59,16 @@
                 MEngineMonitor::EPEMessagePEConstructionReady,
                 40 );
         }    
-
+    
+    // No error checking here because this will succeed only once when this is called. The RProperty::Set will
+    // fail, if this call is not successfull at all.
+    RProperty::Define( 
+        KPSUidAiInformation,
+        KActiveIdleState,
+        RProperty::EInt );
+                            
+    User::LeaveIfError( RProperty::Set( KPSUidAiInformation, KActiveIdleState, EPSAiForeground ) ); 
+    
     return pEif;
     }