idlefw/src/idleint/aiidleappregister.cpp
branchRCL_3
changeset 15 a0713522ab97
parent 0 79c6a41cd166
equal deleted inserted replaced
14:15e4dd19031c 15:a0713522ab97
    87             KActiveIdleSimRegFailedReceived,
    87             KActiveIdleSimRegFailedReceived,
    88           	RProperty::EInt,
    88           	RProperty::EInt,
    89             KTelephonyInformationReadPolicy,
    89             KTelephonyInformationReadPolicy,
    90             KTelephonyInformationWritePolicy );
    90             KTelephonyInformationWritePolicy );
    91         }
    91         }
    92 
       
    93     TInt DefineIdleAI2RestartPS()
       
    94         {
       
    95         return RProperty::Define( 
       
    96         	KPSUidAiInformation,
       
    97             KActiveIdleRestartAI2,
       
    98           	RProperty::EInt,
       
    99             KTelephonyInformationReadPolicy,
       
   100             KTelephonyInformationWritePolicy );
       
   101         }
       
   102 	TInt SetIdleAI2RestartPS()
       
   103         {
       
   104         return RProperty::Set( 
       
   105         	KPSUidAiInformation, 
       
   106             KActiveIdleRestartAI2, 
       
   107             0 );
       
   108         }
       
   109         
       
   110       TInt DefineIdleLaunchPS()
       
   111       	{
       
   112       	return RProperty::Define( 
       
   113         	KPSUidAiInformation,
       
   114         	KActiveIdleLaunch,
       
   115         	RProperty::EInt,
       
   116         	ECapabilityReadDeviceData,
       
   117         	ECapabilityWriteDeviceData );
       
   118       	}
       
   119       
    92       
   120       TInt DefineIdleSendNumKeysToPhonePS()
    93       TInt DefineIdleSendNumKeysToPhonePS()
   121           {
    94           {
   122           return RProperty::Define( 
    95           return RProperty::Define( 
   123               KPSUidAiInformation,
    96               KPSUidAiInformation,
   164     
   137     
   165     DefineIdleSendKeyPS();
   138     DefineIdleSendKeyPS();
   166     
   139     
   167     DefineIdleSimRegFailedReceivedPS();
   140     DefineIdleSimRegFailedReceivedPS();
   168     
   141     
   169     DefineIdleLaunchPS();
       
   170     
       
   171     // Set the default value to 1 so the send key press is reacted
   142     // Set the default value to 1 so the send key press is reacted
   172     SetIdleSendKeyPS();
   143     SetIdleSendKeyPS();
   173     
   144     
   174     // Failure to set the telephony P&S key is fatal
   145     // Failure to set the telephony P&S key is fatal
   175     User::LeaveIfError( setPSResult );
   146     User::LeaveIfError( setPSResult );
   176     
   147     
   177     // Define idle state key
   148     // Define idle state key
   178     DefineIdleStatePS();
   149     DefineIdleStatePS();
   179     
       
   180     DefineIdleAI2RestartPS();
       
   181     
       
   182     SetIdleAI2RestartPS();
       
   183     
   150     
   184     DefineIdleSendNumKeysToPhonePS();
   151     DefineIdleSendNumKeysToPhonePS();
   185     
   152     
   186     SetIdleSendNumKeysToPhonePS();
   153     SetIdleSendNumKeysToPhonePS();
   187     }
   154     }