119 TInt CMmSimLockTsy::DoExtFuncL( |
119 TInt CMmSimLockTsy::DoExtFuncL( |
120 const TTsyReqHandle aTsyReqHandle, |
120 const TTsyReqHandle aTsyReqHandle, |
121 const TInt aIpc, |
121 const TInt aIpc, |
122 const TDataPackage& aPackage ) |
122 const TDataPackage& aPackage ) |
123 { |
123 { |
|
124 OstTraceDefExt3(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMLOCKTSY_DOEXTFUNCL_1, "TSY: CMmSimLockTsy::DoExtFuncL. IPC:%{TIPCNamesList} Handle:%d Object:0x%08x", (TUint)aIpc, aTsyReqHandle, (TUint)this); |
|
125 TInt ret(KErrNone); |
|
126 |
124 switch ( aIpc ) |
127 switch ( aIpc ) |
125 { |
128 { |
126 case ECustomSimLockActivateIPC: |
129 case ECustomSimLockActivateIPC: |
127 return ActivateSimLockL( aTsyReqHandle, |
130 ret = ActivateSimLockL( aTsyReqHandle, |
128 REINTERPRET_CAST( RMmCustomAPI::TSimLockPassword*, |
131 REINTERPRET_CAST( RMmCustomAPI::TSimLockPassword*, |
129 aPackage.Ptr1() ), |
132 aPackage.Ptr1() ), |
130 REINTERPRET_CAST( RMmCustomAPI::TLockNumber*, |
133 REINTERPRET_CAST( RMmCustomAPI::TLockNumber*, |
131 aPackage.Ptr2() ) ); |
134 aPackage.Ptr2() ) ); |
|
135 break; |
132 case ECustomSimLockDeActivateIPC: |
136 case ECustomSimLockDeActivateIPC: |
133 return DeActivateSimLockL( aTsyReqHandle, |
137 ret = DeActivateSimLockL( aTsyReqHandle, |
134 REINTERPRET_CAST( RMmCustomAPI::TSimLockPassword*, |
138 REINTERPRET_CAST( RMmCustomAPI::TSimLockPassword*, |
135 aPackage.Ptr1() ), |
139 aPackage.Ptr1() ), |
136 REINTERPRET_CAST( RMmCustomAPI::TLockNumber*, |
140 REINTERPRET_CAST( RMmCustomAPI::TLockNumber*, |
137 aPackage.Ptr2() ) ); |
141 aPackage.Ptr2() ) ); |
138 default: |
142 break; |
139 return KErrNotSupported; |
143 default: |
140 } |
144 ret = KErrNotSupported; |
|
145 } |
|
146 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMLOCKTSY_DOEXTFUNCL_2, "TSY: CMmSimLockTsy::DoExtFuncL, error=%{TSymbianErrorCodes}", ret); |
|
147 return ret; |
141 } |
148 } |
142 |
149 |
143 // --------------------------------------------------------------------------- |
150 // --------------------------------------------------------------------------- |
144 // CMmSimLockTsy::ReqModeL |
151 // CMmSimLockTsy::ReqModeL |
145 // Returns request mode for given IPC. Leaves with error code KErrNotSupported |
152 // Returns request mode for given IPC. Leaves with error code KErrNotSupported |
451 // |
458 // |
452 void CMmSimLockTsy::Complete( |
459 void CMmSimLockTsy::Complete( |
453 TInt aReqHandleType, |
460 TInt aReqHandleType, |
454 TInt aError ) |
461 TInt aError ) |
455 { |
462 { |
456 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMLOCKTSY_COMPLETE_1, "CMmCustomTsy: CMmSimLockTsy::Complete.\n\t ReqHandleType:%d \n\t Error:%d\n", aReqHandleType, aError ); |
463 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMLOCKTSY_COMPLETE_1, "CMmCustomTsy: CMmSimLockTsy::Complete.\n\t ReqHandleType:%d \n\t Error:%{TSymbianErrorCodes}\n", aReqHandleType, aError ); |
457 |
464 |
458 // All possible TSY req handle types are listed in the |
465 // All possible TSY req handle types are listed in the |
459 // switch case below. |
466 // switch case below. |
460 switch ( aReqHandleType ) |
467 switch ( aReqHandleType ) |
461 { |
468 { |