changeset 73 | 70d75957b98f |
parent 69 | b982c3e940f3 |
69:b982c3e940f3 | 73:70d75957b98f |
---|---|
253 // before processing further the request, check if offline mode status |
253 // before processing further the request, check if offline mode status |
254 // is enabled and if the given request can be perfomed in that case. |
254 // is enabled and if the given request can be perfomed in that case. |
255 if ( ERfsStateInfoInactive == iMmPhone->GetRfStateInfo() && |
255 if ( ERfsStateInfoInactive == iMmPhone->GetRfStateInfo() && |
256 !IsRequestPossibleInOffline( aIpc ) ) |
256 !IsRequestPossibleInOffline( aIpc ) ) |
257 { |
257 { |
258 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSMSTSY_EXTFUNC_1, "TSY: Offline mode ON, request is not allowed: %d", aIpc ); |
258 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSMSTSY_EXTFUNC_1, "TSY: Offline mode ON, request is not allowed: %{TIPCNamesList}", aIpc ); |
259 TInt error = CMmCommonStaticUtility::EpocErrorCode( KErrGeneral, |
259 TInt error = CMmCommonStaticUtility::EpocErrorCode( KErrGeneral, |
260 KErrGsmOfflineOpNotAllowed ); |
260 KErrGsmOfflineOpNotAllowed ); |
261 |
261 |
262 // Complete the request with appropiate error |
262 // Complete the request with appropiate error |
263 ReqCompleted ( aTsyReqHandle, error ); |
263 ReqCompleted ( aTsyReqHandle, error ); |
304 TRAP( leaveCode, ret = DoExtFuncL( aTsyReqHandle, aIpc, |
304 TRAP( leaveCode, ret = DoExtFuncL( aTsyReqHandle, aIpc, |
305 aPackage ); ); |
305 aPackage ); ); |
306 |
306 |
307 if ( KErrNone != leaveCode ) |
307 if ( KErrNone != leaveCode ) |
308 { |
308 { |
309 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSMSTSY_EXTFUNC_2, "CMmSmsTsy: Leave trapped!, IPC=%d, error value:%d", aIpc, leaveCode ); |
309 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSMSTSY_EXTFUNC_2, "CMmSmsTsy: Leave trapped!, IPC=%{TIPCNamesList}, error value:%{TSymbianErrorCodes}", aIpc, leaveCode ); |
310 //reset request handle to indicate the request is no longer ongoing |
310 //reset request handle to indicate the request is no longer ongoing |
311 iTsyReqHandleStore->FindAndResetTsyReqHandle( aTsyReqHandle ); |
311 iTsyReqHandleStore->FindAndResetTsyReqHandle( aTsyReqHandle ); |
312 ReqCompleted( aTsyReqHandle, leaveCode ); |
312 ReqCompleted( aTsyReqHandle, leaveCode ); |
313 } |
313 } |
314 |
314 |
342 TInt CMmSmsTsy::DoExtFuncL( |
342 TInt CMmSmsTsy::DoExtFuncL( |
343 const TTsyReqHandle aTsyReqHandle, |
343 const TTsyReqHandle aTsyReqHandle, |
344 const TInt aIpc, |
344 const TInt aIpc, |
345 const TDataPackage& aPackage ) |
345 const TDataPackage& aPackage ) |
346 { |
346 { |
347 OstTraceDefExt3(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSMSTSY_DOEXTFUNCL_1, "TSY: CMmSmsTsy::DoExtFuncL. IPC:%{TIPCNamesList} Handle:%d Object:0x%08x", (TUint)aIpc, (TUint)aTsyReqHandle, (TUint)this); |
|
347 TAny* dataPtr = aPackage.Ptr1(); |
348 TAny* dataPtr = aPackage.Ptr1(); |
348 TAny* dataPtr2 = aPackage.Ptr2(); |
349 TAny* dataPtr2 = aPackage.Ptr2(); |
349 |
350 |
350 TInt ret( KErrNone ); |
351 TInt ret( KErrNone ); |
351 |
352 |
411 default: |
412 default: |
412 ret = KErrNotSupported; |
413 ret = KErrNotSupported; |
413 break; |
414 break; |
414 } |
415 } |
415 |
416 |
417 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSMSTSY_DOEXTFUNCL_2, "TSY: CMmSmsTsy::DoExtFuncL, error=%{TSymbianErrorCodes}", ret); |
|
416 return ret; |
418 return ret; |
417 } |
419 } |
418 |
420 |
419 // --------------------------------------------------------------------------- |
421 // --------------------------------------------------------------------------- |
420 // CMmSmsTsy::ReqModeL |
422 // CMmSmsTsy::ReqModeL |
1868 // CMmSmsTsy::IsRPError |
1870 // CMmSmsTsy::IsRPError |
1869 // Checks if error code is a relay protocol error |
1871 // Checks if error code is a relay protocol error |
1870 // --------------------------------------------------------------------------- |
1872 // --------------------------------------------------------------------------- |
1871 TBool CMmSmsTsy::IsRPError(TInt aError) |
1873 TBool CMmSmsTsy::IsRPError(TInt aError) |
1872 { |
1874 { |
1873 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSMSTSY_ISRPERROR_1, "CMmSmsTsy::IsRPError(): %d", aError); |
1875 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSMSTSY_ISRPERROR_1, "CMmSmsTsy::IsRPError(): %{TSymbianErrorCodes}", aError); |
1874 |
1876 |
1875 TBool isRPError = EFalse; |
1877 TBool isRPError = EFalse; |
1876 switch (aError) |
1878 switch (aError) |
1877 { |
1879 { |
1878 case KErrGsmSMSShortMessageTransferRejected: |
1880 case KErrGsmSMSShortMessageTransferRejected: |
2094 // --------------------------------------------------------------------------- |
2096 // --------------------------------------------------------------------------- |
2095 // |
2097 // |
2096 void CMmSmsTsy::CompleteSendSatMessage( |
2098 void CMmSmsTsy::CompleteSendSatMessage( |
2097 TInt aError ) |
2099 TInt aError ) |
2098 { |
2100 { |
2099 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSMSTSY_COMPLETESENDSATMESSAGE_1, "TSY: CMmSmsTsy::CompleteSendSatMessage. Complete SAT SMS send Error: %d", aError); |
2101 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSMSTSY_COMPLETESENDSATMESSAGE_1, "TSY: CMmSmsTsy::CompleteSendSatMessage. Complete SAT SMS send Error: %{TSymbianErrorCodes}", aError); |
2100 iTsyReqHandleStore->ResetTsyReqHandle( EMultimodeSmsSendSatMessage ); |
2102 iTsyReqHandleStore->ResetTsyReqHandle( EMultimodeSmsSendSatMessage ); |
2101 |
2103 |
2102 if ( iTsySatMessaging ) |
2104 if ( iTsySatMessaging ) |
2103 { |
2105 { |
2104 iTsySatMessaging->CompleteSendSmsMessage( aError ); |
2106 iTsySatMessaging->CompleteSendSmsMessage( aError ); |
2463 CArrayPtrFlat<TSmsParameters>* smsParams; |
2465 CArrayPtrFlat<TSmsParameters>* smsParams; |
2464 |
2466 |
2465 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
2467 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
2466 EMultimodeSmsReadSmspListPhase1 ); |
2468 EMultimodeSmsReadSmspListPhase1 ); |
2467 |
2469 |
2468 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSMSTSY_COMPLETEREADALLSMSPPHASE1_1, "TSY: CMmSmsTsy::CompleteReadAllSmspPhase1 Complete read first phase error: %d",aError); |
2470 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSMSTSY_COMPLETEREADALLSMSPPHASE1_1, "TSY: CMmSmsTsy::CompleteReadAllSmspPhase1 Complete read first phase error: %{TSymbianErrorCodes}",aError); |
2469 if ( KErrNone == aError ) |
2471 if ( KErrNone == aError ) |
2470 { |
2472 { |
2471 aDataPackage->UnPackData( &smsParams ); |
2473 aDataPackage->UnPackData( &smsParams ); |
2472 if ( reqHandle ) |
2474 if ( reqHandle ) |
2473 { |
2475 { |
2489 // Complete first phase of read all SMSP sets |
2491 // Complete first phase of read all SMSP sets |
2490 ReqCompleted( reqHandle, KErrNone ); |
2492 ReqCompleted( reqHandle, KErrNone ); |
2491 } |
2493 } |
2492 else |
2494 else |
2493 { |
2495 { |
2494 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSMSTSY_COMPLETEREADALLSMSPPHASE1_3, "TSY: CMmSmsTsy::CompleteReadAllSmspPhase1: Could not create SMSP list, trapError=%d",trapError); |
2496 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSMSTSY_COMPLETEREADALLSMSPPHASE1_3, "TSY: CMmSmsTsy::CompleteReadAllSmspPhase1: Could not create SMSP list, trapError=%{TSymbianErrorCodes}",trapError); |
2495 // Complete with error |
2497 // Complete with error |
2496 ReqCompleted( reqHandle, trapError ); |
2498 ReqCompleted( reqHandle, trapError ); |
2497 } |
2499 } |
2498 } |
2500 } |
2499 } |
2501 } |