telephonyserverplugins/common_tsy/commontsy/src/mmcustomtsy/CMmCustomSecurityTsy.cpp
changeset 73 70d75957b98f
parent 44 8b72faa1200f
equal deleted inserted replaced
69:b982c3e940f3 73:70d75957b98f
   132 TInt CMmCustomSecurityTsy::DoExtFuncL(
   132 TInt CMmCustomSecurityTsy::DoExtFuncL(
   133     const TTsyReqHandle aTsyReqHandle, 
   133     const TTsyReqHandle aTsyReqHandle, 
   134     const TInt aIpc, 
   134     const TInt aIpc, 
   135     const TDataPackage& aPackage )
   135     const TDataPackage& aPackage )
   136     {
   136     {
       
   137     OstTraceDefExt3(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMSECURITYTSY_DOEXTFUNCL_1, "TSY: CMmCustomSecurityTsy::DoExtFuncL. IPC:%{TIPCNamesList} Handle:%d Object:0x%08x", (TUint)aIpc, aTsyReqHandle, (TUint)this);
   137     TInt ret( KErrGeneral );
   138     TInt ret( KErrGeneral );
   138 
   139 
   139     // reset last tsy request type
   140     // reset last tsy request type
   140     iReqHandleType = ESecurityTsyReqHandleUnknown;
   141     iReqHandleType = ESecurityTsyReqHandleUnknown;
   141 
   142 
   175 #else
   176 #else
   176         iTsyReqHandleStore->SetTsyReqHandle( iReqHandleType, aTsyReqHandle );
   177         iTsyReqHandleStore->SetTsyReqHandle( iReqHandleType, aTsyReqHandle );
   177 #endif // REQHANDLE_TIMER
   178 #endif // REQHANDLE_TIMER
   178         }
   179         }
   179 
   180 
       
   181 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMSECURITYTSY_DOEXTFUNCL_2, "<-- TSY: CMmCustomSecurityTsy::DoExtFuncL, error=%{TSymbianErrorCodes}", ret);
   180     return ret;
   182     return ret;
   181     }
   183     }
   182     
   184     
   183 // ---------------------------------------------------------------------------
   185 // ---------------------------------------------------------------------------
   184 // CMmCustomSecurityTsy::ReqModeL
   186 // CMmCustomSecurityTsy::ReqModeL
   335 //
   337 //
   336 void CMmCustomSecurityTsy::Complete(
   338 void CMmCustomSecurityTsy::Complete(
   337     TInt aReqHandleType, 
   339     TInt aReqHandleType, 
   338     TInt aError )
   340     TInt aError )
   339     {
   341     {
   340 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMSECURITYTSY_COMPLETE_1,  "CustomTSY: CMmCustomSecurityTsy::Complete.\n\t ReqHandleType:%d \n\t Error:%d\n", aReqHandleType, aError );
   342 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMSECURITYTSY_COMPLETE_1,  "CustomTSY: CMmCustomSecurityTsy::Complete.\n\t ReqHandleType:%d \n\t Error:%{TSymbianErrorCodes}\n", aReqHandleType, aError );
   341     // All possible TSY req handle types are listed in the
   343     // All possible TSY req handle types are listed in the
   342     // switch case below.
   344     // switch case below.
   343     switch ( aReqHandleType )
   345     switch ( aReqHandleType )
   344         {
   346         {
   345         case ESecurityRequestTypeCheckSecurityCode:
   347         case ESecurityRequestTypeCheckSecurityCode:
   526 // ---------------------------------------------------------------------------
   528 // ---------------------------------------------------------------------------
   527 //
   529 //
   528 void CMmCustomSecurityTsy::CompleteCheckSecurityCode(
   530 void CMmCustomSecurityTsy::CompleteCheckSecurityCode(
   529     TInt aErrorCode )
   531     TInt aErrorCode )
   530     {
   532     {
   531 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMSECURITYTSY_COMPLETECHECKSECURITYCODE_1, "TSY: CMmCustomSecurityTsy::CompleteCheckSecurityCode - Error code: %d", aErrorCode );
   533 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMSECURITYTSY_COMPLETECHECKSECURITYCODE_1, "TSY: CMmCustomSecurityTsy::CompleteCheckSecurityCode - Error code: %{TSymbianErrorCodes}", aErrorCode );
   532     // reset req handle. Returns the deleted req handle
   534     // reset req handle. Returns the deleted req handle
   533     TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( 
   535     TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( 
   534         ESecurityRequestTypeCheckSecurityCode );
   536         ESecurityRequestTypeCheckSecurityCode );
   535 
   537 
   536     if ( ESecurityTsyReqHandleUnknown != reqHandle )
   538     if ( ESecurityTsyReqHandleUnknown != reqHandle )
   650 // ---------------------------------------------------------------------------
   652 // ---------------------------------------------------------------------------
   651 //
   653 //
   652 void CMmCustomSecurityTsy::CompleteDisablePhoneLock(
   654 void CMmCustomSecurityTsy::CompleteDisablePhoneLock(
   653     TInt aErrorCode )
   655     TInt aErrorCode )
   654     {
   656     {
   655 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMSECURITYTSY_COMPLETEDISABLEPHONELOCK_1, "TSY: CMmCustomSecurityTsy::CompleteDisablePhoneLock - Error code: %d", aErrorCode );
   657 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMSECURITYTSY_COMPLETEDISABLEPHONELOCK_1, "TSY: CMmCustomSecurityTsy::CompleteDisablePhoneLock - Error code: %{TSymbianErrorCodes}", aErrorCode );
   656     // reset req handle. Returns the deleted req handle
   658     // reset req handle. Returns the deleted req handle
   657     TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( 
   659     TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( 
   658         ESecurityRequestTypeDisablePhoneLock );
   660         ESecurityRequestTypeDisablePhoneLock );
   659 
   661 
   660     if ( ESecurityTsyReqHandleUnknown != reqHandle )
   662     if ( ESecurityTsyReqHandleUnknown != reqHandle )