phoneclientserver/EnPolicy/Src/SosEnPolicy/CSosEnPolicySimStatusMonitor.cpp
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
    16 */
    16 */
    17 
    17 
    18 
    18 
    19 
    19 
    20 // INCLUDES
    20 // INCLUDES
    21 #include    "csosenpolicysimstatusmonitor.h" 
    21 #include    "CSosEnPolicySimStatusMonitor.h"
    22 #include    <startupdomainpskeys.h> // Property values
    22 #include    <startupdomainpskeys.h> // Property values
    23 #include    <PSVariables.h> 
    23 #include    <PSVariables.h>
    24 
    24 
    25 
    25 
    26 
    26 
    27 // CONSTANTS
    27 // CONSTANTS
    28 const TUint KENPolicySAConnectionRetryTime = 2000000;  // 2s
    28 const TUint KENPolicySAConnectionRetryTime = 2000000;  // 2s
   192 // 
   192 // 
   193 TBool CSosEnPolicySimStatusMonitor::TranslateState( TInt aState )
   193 TBool CSosEnPolicySimStatusMonitor::TranslateState( TInt aState )
   194     {
   194     {
   195     switch ( aState )
   195     switch ( aState )
   196         {
   196         {
   197         case ESimUsable:         
   197     	case ESimUsable:         
   198         case ESimReadable:
   198     	case ESimReadable:
   199             return ETrue;
   199 			return ETrue;
   200         case  ESimStatusUninitialized:
   200     	case  ESimStatusUninitialized:
   201         case ESimNotReady:
   201     	case ESimNotReady:
   202         case ESimNotSupported:
   202     	case ESimNotSupported:
   203         case ESimNotPresent:
   203     	case ESimNotPresent:
   204             return EFalse;
   204     		return EFalse;
   205         default:
   205     	default:
   206             return EFalse;
   206             return EFalse;
   207         }
   207         }
   208     }
   208     }
   209 
   209 
   210 
   210