equal
deleted
inserted
replaced
118 TInt CMmMBMSContextTsy::ExtFunc( |
118 TInt CMmMBMSContextTsy::ExtFunc( |
119 TTsyReqHandle aTsyReqHandle, |
119 TTsyReqHandle aTsyReqHandle, |
120 TInt aIpc, |
120 TInt aIpc, |
121 const TDataPackage& aPackage ) |
121 const TDataPackage& aPackage ) |
122 { |
122 { |
123 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_EXTFUNC_1, "TSY: CMmMBMSContextTsy::ExtFunc. IPC: %d Context name:%S", aIpc, iContextName ); |
123 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_EXTFUNC_1, "TSY: CMmMBMSContextTsy::ExtFunc. IPC: %{TIPCNamesList} Context name:%S", (TUint)aIpc, iContextName ); |
124 |
124 |
125 TInt ret( KErrNone ); |
125 TInt ret( KErrNone ); |
126 TInt trapError( KErrNone ); |
126 TInt trapError( KErrNone ); |
127 |
127 |
128 // Reset last tsy request type |
128 // Reset last tsy request type |
165 TInt CMmMBMSContextTsy::DoExtFuncL( |
165 TInt CMmMBMSContextTsy::DoExtFuncL( |
166 TTsyReqHandle aTsyReqHandle, |
166 TTsyReqHandle aTsyReqHandle, |
167 TInt aIpc, |
167 TInt aIpc, |
168 const TDataPackage& aPackage ) |
168 const TDataPackage& aPackage ) |
169 { |
169 { |
170 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_DOEXTFUNCL_1, "TSY: CMmMBMSContextTsy::DoExtFuncL. IPC: %d Handle:%d",aIpc, aTsyReqHandle ); |
170 OstTraceDefExt3(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_DOEXTFUNCL_1, "TSY: CMmMBMSContextTsy::DoExtFuncL. IPC: %{TIPCNamesList} Handle:%d Object:0x%08x", (TUint)aIpc, (TInt)aTsyReqHandle, (TUint)this ); |
171 |
171 |
172 TInt ret( KErrNotSupported ); |
172 TInt ret( KErrNotSupported ); |
173 |
173 |
174 TAny* dataPtr = aPackage.Ptr1(); |
174 TAny* dataPtr = aPackage.Ptr1(); |
175 TAny* dataPtr2 = aPackage.Ptr2(); |
175 TAny* dataPtr2 = aPackage.Ptr2(); |
245 case EPacketRemoveMediaAuthorization: |
245 case EPacketRemoveMediaAuthorization: |
246 default: |
246 default: |
247 break; |
247 break; |
248 } |
248 } |
249 |
249 |
|
250 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_DOEXTFUNCL_2, "TSY: CMmMBMSContextTsy::DoExtFuncL, error=%{TSymbianErrorCodes}", ret); |
250 return ret; |
251 return ret; |
251 } |
252 } |
252 |
253 |
253 |
254 |
254 |
255 |
258 // --------------------------------------------------------------------------- |
259 // --------------------------------------------------------------------------- |
259 // |
260 // |
260 CTelObject::TReqMode CMmMBMSContextTsy::ReqModeL( |
261 CTelObject::TReqMode CMmMBMSContextTsy::ReqModeL( |
261 TInt aIpc ) |
262 TInt aIpc ) |
262 { |
263 { |
263 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_REQMODEL_1, "TSY: CMmMBMSContextTsy::ReqModeL. IPC: %d", aIpc ); |
264 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_REQMODEL_1, "TSY: CMmMBMSContextTsy::ReqModeL. IPC: %{TIPCNamesList}", aIpc ); |
264 |
265 |
265 CTelObject::TReqMode reqMode( 0 ); |
266 CTelObject::TReqMode reqMode( 0 ); |
266 TBool doLeave( EFalse ); |
267 TBool doLeave( EFalse ); |
267 |
268 |
268 switch ( aIpc ) |
269 switch ( aIpc ) |
370 // Unknown or invalid IPC |
371 // Unknown or invalid IPC |
371 User::Leave( KErrNotSupported ); |
372 User::Leave( KErrNotSupported ); |
372 break; |
373 break; |
373 |
374 |
374 } |
375 } |
375 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_NUMBEROFSLOTSL_1, "TSY: CMmMBMSContextTsy::NumberOfSlotsL. IPC: %d Number of slots: %d", aIpc, numberOfSlots ); |
376 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_NUMBEROFSLOTSL_1, "TSY: CMmMBMSContextTsy::NumberOfSlotsL. IPC: %{TIPCNamesList} Number of slots: %d", aIpc, numberOfSlots ); |
376 |
377 |
377 return numberOfSlots; |
378 return numberOfSlots; |
378 |
379 |
379 } |
380 } |
380 |
381 |
392 // |
393 // |
393 TInt CMmMBMSContextTsy::CancelService( |
394 TInt CMmMBMSContextTsy::CancelService( |
394 TInt aIpc, |
395 TInt aIpc, |
395 TTsyReqHandle aTsyReqHandle ) |
396 TTsyReqHandle aTsyReqHandle ) |
396 { |
397 { |
397 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_CANCELSERVICE_1, "TSY: CMmMBMSContextTsy::CancelService. IPC: %d Handle:%d", aIpc, aTsyReqHandle ); |
398 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_CANCELSERVICE_1, "TSY: CMmMBMSContextTsy::CancelService. IPC: %{TIPCNamesList} Handle:%d", aIpc, aTsyReqHandle ); |
398 |
399 |
399 TInt ret( KErrNone ); |
400 TInt ret( KErrNone ); |
400 //TTsyReqHandle reqHandle( NULL ); |
401 //TTsyReqHandle reqHandle( NULL ); |
401 // Reset last tsy request type |
402 // Reset last tsy request type |
402 iReqHandleType = EMultimodePacketMbmsReqHandleUnknown; |
403 iReqHandleType = EMultimodePacketMbmsReqHandleUnknown; |
465 // --------------------------------------------------------------------------- |
466 // --------------------------------------------------------------------------- |
466 // |
467 // |
467 TInt CMmMBMSContextTsy::RegisterNotification( |
468 TInt CMmMBMSContextTsy::RegisterNotification( |
468 TInt aIpc ) |
469 TInt aIpc ) |
469 { |
470 { |
470 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_REGISTERNOTIFICATION_1, "TSY: CMmMBMSContextTsy::RegisterNotification. IPC: %d", aIpc ); |
471 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_REGISTERNOTIFICATION_1, "TSY: CMmMBMSContextTsy::RegisterNotification. IPC: %{TIPCNamesList}", aIpc ); |
471 |
472 |
472 TInt ret( KErrNone ); |
473 TInt ret( KErrNone ); |
473 |
474 |
474 switch ( aIpc ) |
475 switch ( aIpc ) |
475 { |
476 { |
498 // --------------------------------------------------------------------------- |
499 // --------------------------------------------------------------------------- |
499 // |
500 // |
500 TInt CMmMBMSContextTsy::DeregisterNotification( |
501 TInt CMmMBMSContextTsy::DeregisterNotification( |
501 TInt aIpc ) |
502 TInt aIpc ) |
502 { |
503 { |
503 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_DEREGISTERNOTIFICATION_1, "TSY: CMmMBMSContextTsy::DeregisterNotification. IPC: %d", aIpc ); |
504 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_DEREGISTERNOTIFICATION_1, "TSY: CMmMBMSContextTsy::DeregisterNotification. IPC: %{TIPCNamesList}", aIpc ); |
504 |
505 |
505 TInt ret( KErrNone ); |
506 TInt ret( KErrNone ); |
506 |
507 |
507 switch ( aIpc ) |
508 switch ( aIpc ) |
508 { |
509 { |
564 // --------------------------------------------------------------------------- |
565 // --------------------------------------------------------------------------- |
565 // |
566 // |
566 |
567 |
567 void CMmMBMSContextTsy::CompleteInitialiseContext(TInt aResult, RPacketContext::TDataChannelV2* aDataChannel ) |
568 void CMmMBMSContextTsy::CompleteInitialiseContext(TInt aResult, RPacketContext::TDataChannelV2* aDataChannel ) |
568 { |
569 { |
569 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_COMPLETEINITIALISECONTEXT_1, "TSY: CMmMBMSContextTsy::CompleteInitialiseContext. Error: %d", aResult ); |
570 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_COMPLETEINITIALISECONTEXT_1, "TSY: CMmMBMSContextTsy::CompleteInitialiseContext. Error: %{TSymbianErrorCodes}", aResult ); |
570 |
571 |
571 iIsActivateAllowed = ETrue; |
572 iIsActivateAllowed = ETrue; |
572 if (KErrNone == aResult ) |
573 if (KErrNone == aResult ) |
573 { |
574 { |
574 CompleteNotifyStatusChange( RPacketContext::EStatusInactive ); |
575 CompleteNotifyStatusChange( RPacketContext::EStatusInactive ); |
650 // (other items were commented in a header). |
651 // (other items were commented in a header). |
651 // --------------------------------------------------------------------------- |
652 // --------------------------------------------------------------------------- |
652 // |
653 // |
653 void CMmMBMSContextTsy::CompleteActivate(TInt aResult) |
654 void CMmMBMSContextTsy::CompleteActivate(TInt aResult) |
654 { |
655 { |
655 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_COMPLETEACTIVATE_1, "TSY: CMmMBMSContextTsy::CompleteActivate. Error: %d", aResult ); |
656 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_COMPLETEACTIVATE_1, "TSY: CMmMBMSContextTsy::CompleteActivate. Error: %{TSymbianErrorCodes}", aResult ); |
656 |
657 |
657 // Reset the req handle. Returns the deleted req handle |
658 // Reset the req handle. Returns the deleted req handle |
658 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
659 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
659 EMultimodeMbmsContextActivate ); |
660 EMultimodeMbmsContextActivate ); |
660 |
661 |
666 // Notify status change |
667 // Notify status change |
667 CompleteNotifyStatusChange( RPacketContext::EStatusActive ); |
668 CompleteNotifyStatusChange( RPacketContext::EStatusActive ); |
668 } |
669 } |
669 else |
670 else |
670 { |
671 { |
671 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_COMPLETEACTIVATE_2, "TSY: CMmMBMSContextTsy::CompleteActivate. ErrorCause: %d",aResult ); |
672 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_COMPLETEACTIVATE_2, "TSY: CMmMBMSContextTsy::CompleteActivate. ErrorCause: %{TSymbianErrorCodes}",aResult ); |
672 // Re-activation is allowed because activation has not succeeded |
673 // Re-activation is allowed because activation has not succeeded |
673 iIsActivateAllowed = ETrue; |
674 iIsActivateAllowed = ETrue; |
674 } |
675 } |
675 |
676 |
676 |
677 |
722 |
723 |
723 void CMmMBMSContextTsy::CompleteDeactivate( |
724 void CMmMBMSContextTsy::CompleteDeactivate( |
724 CMmDataPackage* aDataPackage, |
725 CMmDataPackage* aDataPackage, |
725 TInt aResult ) |
726 TInt aResult ) |
726 { |
727 { |
727 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_COMPLETEDEACTIVATE_1, "TSY: CMmMBMSContextTsy::CompleteDeactivate. Error: %d", aResult ); |
728 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_COMPLETEDEACTIVATE_1, "TSY: CMmMBMSContextTsy::CompleteDeactivate. Error: %{TSymbianErrorCodes}", aResult ); |
728 // Reset the req handle. Returns the deleted req handle |
729 // Reset the req handle. Returns the deleted req handle |
729 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
730 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
730 EMultimodeMbmsContextDeactivate ); |
731 EMultimodeMbmsContextDeactivate ); |
731 |
732 |
732 // Notify status change |
733 // Notify status change |
816 // |
817 // |
817 |
818 |
818 void CMmMBMSContextTsy::CompleteDelete( |
819 void CMmMBMSContextTsy::CompleteDelete( |
819 TInt aResult ) |
820 TInt aResult ) |
820 { |
821 { |
821 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_COMPLETEDELETE_1, "TSY: CMmMBMSContextTsy::CompleteDelete. Error: %d", aResult ); |
822 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_COMPLETEDELETE_1, "TSY: CMmMBMSContextTsy::CompleteDelete. Error: %{TSymbianErrorCodes}", aResult ); |
822 |
823 |
823 if( KErrNone == aResult ) |
824 if( KErrNone == aResult ) |
824 { |
825 { |
825 iContextStatusBeforeDeactivation = RPacketContext::EStatusDeleted; |
826 iContextStatusBeforeDeactivation = RPacketContext::EStatusDeleted; |
826 |
827 |
882 // |
883 // |
883 TInt CMmMBMSContextTsy::GetLastErrorCause( |
884 TInt CMmMBMSContextTsy::GetLastErrorCause( |
884 TTsyReqHandle aTsyReqHandle, |
885 TTsyReqHandle aTsyReqHandle, |
885 TInt* aError ) |
886 TInt* aError ) |
886 { |
887 { |
887 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_GETLASTERRORCAUSE_1, "TSY: CMmMBMSContextTsy::GetLastErrorCause. Context name:%S Last error cause: %d", iContextName, iLastErrorCause ); |
888 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_GETLASTERRORCAUSE_1, "TSY: CMmMBMSContextTsy::GetLastErrorCause. Context name:%S Last error cause: %{TSymbianErrorCodes}", iContextName, iLastErrorCause ); |
888 |
889 |
889 *aError = iLastErrorCause; |
890 *aError = iLastErrorCause; |
890 CMmMBMSContextTsy::ReqCompleted( aTsyReqHandle, KErrNone ); |
891 CMmMBMSContextTsy::ReqCompleted( aTsyReqHandle, KErrNone ); |
891 |
892 |
892 return KErrNone; |
893 return KErrNone; |
902 TInt aErrorCause ) |
903 TInt aErrorCause ) |
903 { |
904 { |
904 |
905 |
905 iLastErrorCause = aErrorCause; |
906 iLastErrorCause = aErrorCause; |
906 |
907 |
907 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_SETLASTERRORCAUSE_1, "TSY: CMmMBMSContextTsy::SetLastErrorCause. aErrorCause: %d iLastErrorCause:%d", aErrorCause, iLastErrorCause ); |
908 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_SETLASTERRORCAUSE_1, "TSY: CMmMBMSContextTsy::SetLastErrorCause. aErrorCause: %{TSymbianErrorCodes} iLastErrorCause:%{TSymbianErrorCodes}", aErrorCause, iLastErrorCause ); |
908 |
909 |
909 } |
910 } |
910 |
911 |
911 // --------------------------------------------------------------------------- |
912 // --------------------------------------------------------------------------- |
912 // CMmMBMSContextTsy::GetStatus |
913 // CMmMBMSContextTsy::GetStatus |
1174 // --------------------------------------------------------------------------- |
1175 // --------------------------------------------------------------------------- |
1175 // |
1176 // |
1176 void CMmMBMSContextTsy::CompleteSetConfig( |
1177 void CMmMBMSContextTsy::CompleteSetConfig( |
1177 TInt aError ) |
1178 TInt aError ) |
1178 { |
1179 { |
1179 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_COMPLETESETCONFIG_1, "TSY: CMmMBMSContextTsy::CompleteSetConfig. Error: %d", aError ); |
1180 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_COMPLETESETCONFIG_1, "TSY: CMmMBMSContextTsy::CompleteSetConfig. Error: %{TSymbianErrorCodes}", aError ); |
1180 |
1181 |
1181 if( (KErrNone == aError) && (iConfig) && (iTempConfig) ) |
1182 if( (KErrNone == aError) && (iConfig) && (iTempConfig) ) |
1182 { |
1183 { |
1183 *iConfig = *iTempConfig; |
1184 *iConfig = *iTempConfig; |
1184 // Release the memory allocated for iTempConfig |
1185 // Release the memory allocated for iTempConfig |
1219 |
1220 |
1220 void CMmMBMSContextTsy::ReqCompleted( |
1221 void CMmMBMSContextTsy::ReqCompleted( |
1221 TTsyReqHandle aTsyReqHandle, |
1222 TTsyReqHandle aTsyReqHandle, |
1222 TInt aError ) |
1223 TInt aError ) |
1223 { |
1224 { |
1224 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_REQCOMPLETED_1, "TSY: CMmMBMSContextTsy::ReqCompleted. Handle:%d Error:%d", aTsyReqHandle, aError ); |
1225 OstTraceDefExt3(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_REQCOMPLETED_1, "TSY: CMmMBMSContextTsy::ReqCompleted. Handle:%d Error:%{TSymbianErrorCodes} Object:0x%08x", (TUint)aTsyReqHandle, aError, (TUint)this); |
1225 |
1226 |
1226 // Set last error cause |
1227 // Set last error cause |
1227 if ( KErrNone != aError ) |
1228 if ( KErrNone != aError ) |
1228 { |
1229 { |
1229 iLastErrorCause = aError; |
1230 iLastErrorCause = aError; |
1230 } |
1231 } |
1231 |
1232 |
1232 CTelObject::ReqCompleted( aTsyReqHandle, aError ); |
1233 CTelObject::ReqCompleted( aTsyReqHandle, aError ); |
1233 |
1234 |
|
1235 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMMBMSCONTEXTTSY_REQCOMPLETED_2, "<-- TSY: CMmMBMSContextTsy::ReqCompleted"); |
1234 } |
1236 } |
1235 |
1237 |
1236 #ifdef REQHANDLE_TIMER |
1238 #ifdef REQHANDLE_TIMER |
1237 |
1239 |
1238 |
1240 |