branch | RCL_3 |
changeset 66 | 07a122eea281 |
parent 65 | 630d2f34d719 |
child 74 | 9200f38b1324 |
65:630d2f34d719 | 66:07a122eea281 |
---|---|
1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
14 // |
14 // |
15 |
15 |
16 |
16 |
17 |
17 |
18 // INCLUDE FILES |
18 // INCLUDE FILES |
19 |
|
20 #include "OstTraceDefinitions.h" |
|
21 #ifdef OST_TRACE_COMPILER_IN_USE |
|
22 #include "CMmCustomTsyTraces.h" |
|
23 #endif |
|
24 |
|
25 #include "CMmCustomTsy.h" |
19 #include "CMmCustomTsy.h" |
26 #include "CMmCustomGsmExt.h" |
20 #include "CMmCustomGsmExt.h" |
27 #include "cmmcalllist.h" |
21 #include "cmmcalllist.h" |
28 #include "cmmphoneextinterface.h" |
22 #include "cmmphoneextinterface.h" |
29 #include "CMmWimTsy.h" |
23 #include "CMmWimTsy.h" |
30 #include "cmmcalltsy.h" |
24 #include "cmmcalltsy.h" |
31 #include "CMmCommonStaticUtility.h" |
25 #include "CMmCommonStaticUtility.h" |
32 #include "CMmSimLockTsy.h" |
26 #include "CMmSimLockTsy.h" |
33 #include "MmTsy_conf.h" |
27 #include "MmTsy_conf.h" |
28 #include <ctsy/tflogger.h> |
|
34 #include "cmmpblist.h" |
29 #include "cmmpblist.h" |
35 #include "cmmphonebookstoretsy.h" |
30 #include "cmmphonebookstoretsy.h" |
36 #include "CMmPacketTsy.h" |
31 #include "CMmPacketTsy.h" |
37 #include "CMmSIMTsy.h" |
32 #include "CMmSIMTsy.h" |
38 #include "CMmCustomSecurityTsy.h" |
33 #include "CMmCustomSecurityTsy.h" |
58 } |
53 } |
59 |
54 |
60 void CMmCustomTsy::ConstructL( |
55 void CMmCustomTsy::ConstructL( |
61 CMmPhoneTsy* aMmPhoneTsy ) |
56 CMmPhoneTsy* aMmPhoneTsy ) |
62 { |
57 { |
63 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_CONSTRUCTL_1, "TSY: CMmCustomTsy::ConstructL"); |
58 TFLOGSTRING("TSY: CMmCustomTsy::ConstructL"); |
64 iMmPhoneTsy = aMmPhoneTsy; |
59 iMmPhoneTsy = aMmPhoneTsy; |
65 |
60 |
66 iMmCustomExtInterface = CMmCustomGsmExt::NewL( aMmPhoneTsy, this ); |
61 iMmCustomExtInterface = CMmCustomGsmExt::NewL( aMmPhoneTsy, this ); |
67 iMmSubTsy[ESubTsyIdxWIM] = CMmWimTsy::NewL( this ); |
62 iMmSubTsy[ESubTsyIdxWIM] = CMmWimTsy::NewL( this ); |
68 iMmSubTsy[ESubTsyIdxSimLock] = CMmSimLockTsy::NewL( this ); |
63 iMmSubTsy[ESubTsyIdxSimLock] = CMmSimLockTsy::NewL( this ); |
101 iUsingFeatureManager = (err == KErrNone); |
96 iUsingFeatureManager = (err == KErrNone); |
102 |
97 |
103 // update/receive Icc Call forward information |
98 // update/receive Icc Call forward information |
104 if( iMmPhoneTsy->NosBootState()->iSIMReady ) |
99 if( iMmPhoneTsy->NosBootState()->iSIMReady ) |
105 { |
100 { |
106 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_CONSTRUCTL_2, "TSY: CMmCustomTsy::ConstructL -- GET ICC call forward indicators"); |
101 TFLOGSTRING("TSY: CMmCustomTsy::ConstructL -- GET ICC call forward indicators"); |
107 // Get Icc cfis values from LTSY |
102 // Get Icc cfis values from LTSY |
108 Phone()->MessageManager()->HandleRequestL( |
103 Phone()->MessageManager()->HandleRequestL( |
109 ECustomGetIccCallForwardingStatusIPC ); |
104 ECustomGetIccCallForwardingStatusIPC ); |
110 } |
105 } |
111 |
106 |
112 // check if HomeZoneParams has been already read in NotifySimStatusReady |
107 // check if HomeZoneParams has been already read in NotifySimStatusReady |
113 // if not, query again |
108 // if not, query again |
114 if ( !iMmPhoneTsy->GetHomeZoneParamsChecked() ) |
109 if ( !iMmPhoneTsy->GetHomeZoneParamsChecked() ) |
115 { |
110 { |
116 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_CONSTRUCTL_3, "TSY: CMmCustomTsy::ConstructL - GetHomeZoneParamsChecked()"); |
111 TFLOGSTRING("TSY: CMmCustomTsy::ConstructL - GetHomeZoneParamsChecked()"); |
117 CMmSIMTsy* simCustomTsy = NULL; |
112 CMmSIMTsy* simCustomTsy = NULL; |
118 simCustomTsy = ( CMmSIMTsy* )GetSIMTsyPtr(); |
113 simCustomTsy = ( CMmSIMTsy* )GetSIMTsyPtr(); |
119 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_CONSTRUCTL_4, "TSY: CMmCustomTsy::ConstructL - pointer created"); |
114 TFLOGSTRING("TSY: CMmCustomTsy::ConstructL - pointer created"); |
120 |
115 |
121 if ( simCustomTsy ) |
116 if ( simCustomTsy ) |
122 { |
117 { |
123 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_CONSTRUCTL_5, "TSY: CMmCustomTsy::ConstructL - CheckViagHomeZoneParamsL()"); |
118 TFLOGSTRING("TSY: CMmCustomTsy::ConstructL - CheckViagHomeZoneParamsL()"); |
124 simCustomTsy->CheckViagHomezoneParamsL(); |
119 simCustomTsy->CheckViagHomezoneParamsL(); |
125 iMmPhoneTsy->SetHomeZoneParamsChecked( ETrue ); |
120 iMmPhoneTsy->SetHomeZoneParamsChecked( ETrue ); |
126 } |
121 } |
127 else |
122 else |
128 { |
123 { |
129 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_CONSTRUCTL_6, "TSY: CMmCustomTsy::ConstructL - CheckViagHomeZoneParamsL() False"); |
124 TFLOGSTRING("TSY: CMmCustomTsy::ConstructL - CheckViagHomeZoneParamsL() False"); |
130 iMmPhoneTsy->SetHomeZoneParamsChecked( EFalse ); |
125 iMmPhoneTsy->SetHomeZoneParamsChecked( EFalse ); |
131 } |
126 } |
132 } |
127 } |
133 } |
128 } |
134 |
129 |
135 CMmCustomTsy* CMmCustomTsy::NewL( |
130 CMmCustomTsy* CMmCustomTsy::NewL( |
136 CMmPhoneTsy* aMmPhoneTsy ) |
131 CMmPhoneTsy* aMmPhoneTsy ) |
137 { |
132 { |
138 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_NEWL_1, "TSY: CMmCustomTsy::NewL"); |
133 TFLOGSTRING("TSY: CMmCustomTsy::NewL"); |
139 CMmCustomTsy* mmCustomTsy = new ( ELeave ) CMmCustomTsy(); |
134 CMmCustomTsy* mmCustomTsy = new ( ELeave ) CMmCustomTsy(); |
140 CleanupClosePushL( *mmCustomTsy ); |
135 CleanupClosePushL( *mmCustomTsy ); |
141 mmCustomTsy->ConstructL( aMmPhoneTsy ); |
136 mmCustomTsy->ConstructL( aMmPhoneTsy ); |
142 CleanupStack::Pop( mmCustomTsy ); |
137 CleanupStack::Pop( mmCustomTsy ); |
143 |
138 |
144 return mmCustomTsy; |
139 return mmCustomTsy; |
145 } |
140 } |
146 |
141 |
147 CMmCustomTsy::~CMmCustomTsy() |
142 CMmCustomTsy::~CMmCustomTsy() |
148 { |
143 { |
149 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_DTOR_1, "TSY: CMmCustomTsy::~CMmCustomTsy"); |
144 TFLOGSTRING("TSY: CMmCustomTsy::~CMmCustomTsy"); |
150 |
145 |
151 iFeatureControl.Close(); |
146 iFeatureControl.Close(); |
152 |
147 |
153 // Delete subsystems |
148 // Delete subsystems |
154 for ( TInt i = 0; ESubTsyIdxMaxNum > i; i++ ) |
149 for ( TInt i = 0; ESubTsyIdxMaxNum > i; i++ ) |
214 // before processing further the request, check if offline mode status |
209 // before processing further the request, check if offline mode status |
215 // is enabled and if the given request can be perfomed in that case. |
210 // is enabled and if the given request can be perfomed in that case. |
216 if ( ERfsStateInfoInactive == iMmPhoneTsy->GetRfStateInfo() && |
211 if ( ERfsStateInfoInactive == iMmPhoneTsy->GetRfStateInfo() && |
217 !IsRequestPossibleInOffline( aIpc ) ) |
212 !IsRequestPossibleInOffline( aIpc ) ) |
218 { |
213 { |
219 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_EXTFUNC_1, "TSY: Offline mode ON, request is not allowed: %d", aIpc ); |
214 TFLOGSTRING2 ("TSY: Offline mode ON, request is not allowed: %d", aIpc ); |
220 ret = CMmCommonStaticUtility::EpocErrorCode( KErrGeneral, |
215 ret = CMmCommonStaticUtility::EpocErrorCode( KErrGeneral, |
221 KErrGsmOfflineOpNotAllowed ); |
216 KErrGsmOfflineOpNotAllowed ); |
222 |
217 |
223 // Complete the request with appropiate error |
218 // Complete the request with appropiate error |
224 ReqCompleted ( aTsyReqHandle, ret ); |
219 ReqCompleted ( aTsyReqHandle, ret ); |
547 RMmCustomAPI::TRemoteAlertingToneStatus*, |
542 RMmCustomAPI::TRemoteAlertingToneStatus*, |
548 aPackage.Ptr1() ) ); |
543 aPackage.Ptr1() ) ); |
549 break; |
544 break; |
550 default: |
545 default: |
551 // ret is already set as KErrNotSupported |
546 // ret is already set as KErrNotSupported |
552 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_DOEXTFUNCL_1, "TSY: CMmCustomTsy::DoExtFuncL unsupported ipc=%d", aIpc); |
547 TFLOGSTRING2("TSY: CMmCustomTsy::DoExtFuncL unsupported ipc=%d", aIpc); |
553 break; |
548 break; |
554 } |
549 } |
555 |
550 |
556 // save request handle |
551 // save request handle |
557 if ( ECustomTsyReqHandleUnknown != iReqHandleType ) |
552 if ( ECustomTsyReqHandleUnknown != iReqHandleType ) |
803 // --------------------------------------------------------------------------- |
798 // --------------------------------------------------------------------------- |
804 // |
799 // |
805 TSecurityPolicy CMmCustomTsy::GetRequiredPlatSecCaps( |
800 TSecurityPolicy CMmCustomTsy::GetRequiredPlatSecCaps( |
806 const TInt aIpc ) |
801 const TInt aIpc ) |
807 { |
802 { |
808 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_1, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps ipc=%d", aIpc ); |
803 TFLOGSTRING2( "TSY: CMmCustomTsy::GetRequiredPlatSecCaps ipc=%d", aIpc ); |
809 // assume fail as default return value |
804 // assume fail as default return value |
810 TSecurityPolicy policy( TSecurityPolicy::EAlwaysFail ); |
805 TSecurityPolicy policy( TSecurityPolicy::EAlwaysFail ); |
811 |
806 |
812 // deal with cancellations |
807 // deal with cancellations |
813 TInt ipc ( aIpc ); |
808 TInt ipc ( aIpc ); |
814 if (ipc >= KIpcCustomExt + EMobileCancelOffset) |
809 if (ipc >= KIpcCustomExt + EMobileCancelOffset) |
815 { |
810 { |
816 ipc -= EMobileCancelOffset; |
811 ipc -= EMobileCancelOffset; |
817 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_2, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps cancel for ipc=%d", ipc); |
812 TFLOGSTRING2("TSY: CMmCustomTsy::GetRequiredPlatSecCaps cancel for ipc=%d", ipc); |
818 } |
813 } |
819 |
814 |
820 switch ( ipc ) |
815 switch ( ipc ) |
821 { |
816 { |
822 case ECustomNotifyRauEventIPC: |
817 case ECustomNotifyRauEventIPC: |
846 case ECustomNotifyHSxPAStatusIPC: |
841 case ECustomNotifyHSxPAStatusIPC: |
847 case ECustomNotifyIccCallForwardingStatusChangeIPC: |
842 case ECustomNotifyIccCallForwardingStatusChangeIPC: |
848 case ECustomNotifyCellInfoChangeIPC: |
843 case ECustomNotifyCellInfoChangeIPC: |
849 case ECustomGetBandSelectionIPC: |
844 case ECustomGetBandSelectionIPC: |
850 case ECustomNotifyRemoteAlertingToneStatusChangeIPC: |
845 case ECustomNotifyRemoteAlertingToneStatusChangeIPC: |
851 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_3, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=None"); |
846 TFLOGSTRING("TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=None"); |
852 policy = TSecurityPolicy( TSecurityPolicy::EAlwaysPass ); |
847 policy = TSecurityPolicy( TSecurityPolicy::EAlwaysPass ); |
853 break; |
848 break; |
854 |
849 |
855 // NetworkControl |
850 // NetworkControl |
856 case ECustomResetNetServerIPC: |
851 case ECustomResetNetServerIPC: |
857 case ECustomSetSystemNetworkModeIPC: |
852 case ECustomSetSystemNetworkModeIPC: |
858 case ECustomSimWarmResetIPC: |
853 case ECustomSimWarmResetIPC: |
859 case ECustomSetBandSelectionIPC: |
854 case ECustomSetBandSelectionIPC: |
860 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_4, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=NetworkControl"); |
855 TFLOGSTRING("TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=NetworkControl"); |
861 policy = TSecurityPolicy( ECapabilityNetworkControl ); |
856 policy = TSecurityPolicy( ECapabilityNetworkControl ); |
862 break; |
857 break; |
863 |
858 |
864 // NetworkControl, PowerMgmt |
859 // NetworkControl, PowerMgmt |
865 case ECustomPowerSimOnIPC: |
860 case ECustomPowerSimOnIPC: |
866 case ECustomPowerSimOffIPC: |
861 case ECustomPowerSimOffIPC: |
867 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_5, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=NetworkControl, PowerMgmt"); |
862 TFLOGSTRING("TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=NetworkControl, PowerMgmt"); |
868 policy = TSecurityPolicy( ECapabilityNetworkControl, |
863 policy = TSecurityPolicy( ECapabilityNetworkControl, |
869 ECapabilityPowerMgmt ); |
864 ECapabilityPowerMgmt ); |
870 break; |
865 break; |
871 |
866 |
872 // NetworkControl, ReadDeviceData |
867 // NetworkControl, ReadDeviceData |
873 case ECustomReleaseFileIPC: |
868 case ECustomReleaseFileIPC: |
874 case ECustomRestartFileIPC: |
869 case ECustomRestartFileIPC: |
875 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_6, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=NetworkControl, ReadDeviceData"); |
870 TFLOGSTRING("TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=NetworkControl, ReadDeviceData"); |
876 policy = TSecurityPolicy( ECapabilityNetworkControl, |
871 policy = TSecurityPolicy( ECapabilityNetworkControl, |
877 ECapabilityReadDeviceData ); |
872 ECapabilityReadDeviceData ); |
878 break; |
873 break; |
879 |
874 |
880 // NetworkServices |
875 // NetworkServices |
881 case ECustomTerminateCallIPC: |
876 case ECustomTerminateCallIPC: |
882 case ECustomCancelUssdSessionIPC: |
877 case ECustomCancelUssdSessionIPC: |
883 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_7, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=NetworkServices"); |
878 TFLOGSTRING("TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=NetworkServices"); |
884 policy = TSecurityPolicy( ECapabilityNetworkServices ); |
879 policy = TSecurityPolicy( ECapabilityNetworkServices ); |
885 break; |
880 break; |
886 |
881 |
887 // NetworkServices, WriteDeviceData |
882 // NetworkServices, WriteDeviceData |
888 case ECustomSetDriveModeIPC: |
883 case ECustomSetDriveModeIPC: |
889 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_8, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=NetworkServices, WriteDeviceData"); |
884 TFLOGSTRING("TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=NetworkServices, WriteDeviceData"); |
890 policy = TSecurityPolicy( ECapabilityNetworkServices, |
885 policy = TSecurityPolicy( ECapabilityNetworkServices, |
891 ECapabilityWriteDeviceData ); |
886 ECapabilityWriteDeviceData ); |
892 break; |
887 break; |
893 |
888 |
894 // ReadDeviceData |
889 // ReadDeviceData |
905 case ECustomGetEGprsInfo: |
900 case ECustomGetEGprsInfo: |
906 case EMobilePhoneIMSAuthenticate: |
901 case EMobilePhoneIMSAuthenticate: |
907 case ECustomReadHSxPAStatusIPC: |
902 case ECustomReadHSxPAStatusIPC: |
908 case ECustomGetIccCallForwardingStatusIPC: |
903 case ECustomGetIccCallForwardingStatusIPC: |
909 case ECustomGetCellInfoIPC: |
904 case ECustomGetCellInfoIPC: |
910 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_9, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=ReadDeviceData"); |
905 TFLOGSTRING("TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=ReadDeviceData"); |
911 policy = TSecurityPolicy( ECapabilityReadDeviceData ); |
906 policy = TSecurityPolicy( ECapabilityReadDeviceData ); |
912 break; |
907 break; |
913 |
908 |
914 // ReadDeviceData, Location |
909 // ReadDeviceData, Location |
915 case EReadViagHomeZoneCacheIPC: |
910 case EReadViagHomeZoneCacheIPC: |
916 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_10, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=ReadDeviceData, Location"); |
911 TFLOGSTRING("TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=ReadDeviceData, Location"); |
917 policy = TSecurityPolicy( ECapabilityReadDeviceData, |
912 policy = TSecurityPolicy( ECapabilityReadDeviceData, |
918 ECapabilityLocation ); |
913 ECapabilityLocation ); |
919 break; |
914 break; |
920 |
915 |
921 // ReadDeviceData, ReadUserData |
916 // ReadDeviceData, ReadUserData |
922 case ECustomNotifySsNetworkEventIPC: |
917 case ECustomNotifySsNetworkEventIPC: |
923 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_11, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy= ReadDeviceData, ReadUserData"); |
918 TFLOGSTRING("TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy= ReadDeviceData, ReadUserData"); |
924 policy = TSecurityPolicy( ECapabilityReadDeviceData, |
919 policy = TSecurityPolicy( ECapabilityReadDeviceData, |
925 ECapabilityReadUserData ); |
920 ECapabilityReadUserData ); |
926 break; |
921 break; |
927 |
922 |
928 // ReadDeviceData, ReadUserData, Location |
923 // ReadDeviceData, ReadUserData, Location |
929 case ECustomReadSimFileIPC: |
924 case ECustomReadSimFileIPC: |
930 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_12, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=ReadDeviceData, ReadUserData, Location"); |
925 TFLOGSTRING("TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=ReadDeviceData, ReadUserData, Location"); |
931 policy = TSecurityPolicy( ECapabilityReadDeviceData, |
926 policy = TSecurityPolicy( ECapabilityReadDeviceData, |
932 ECapabilityReadUserData, |
927 ECapabilityReadUserData, |
933 ECapabilityLocation ); |
928 ECapabilityLocation ); |
934 break; |
929 break; |
935 |
930 |
936 // ReadDeviceData, ReadUserData, WriteUserData, NetworkControl |
931 // ReadDeviceData, ReadUserData, WriteUserData, NetworkControl |
937 case ECustomGetSimAuthenticationDataIPC: |
932 case ECustomGetSimAuthenticationDataIPC: |
938 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_13, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=ReadDeviceData, ReadUserData, WriteUserData, NetworkControl"); |
933 TFLOGSTRING("TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=ReadDeviceData, ReadUserData, WriteUserData, NetworkControl"); |
939 policy = TSecurityPolicy( ECapabilityReadDeviceData, |
934 policy = TSecurityPolicy( ECapabilityReadDeviceData, |
940 ECapabilityReadUserData, |
935 ECapabilityReadUserData, |
941 ECapabilityWriteUserData, |
936 ECapabilityWriteUserData, |
942 ECapabilityNetworkControl ); |
937 ECapabilityNetworkControl ); |
943 break; |
938 break; |
944 |
939 |
945 case ECustomGetServiceTableSupportbyApplicationIPC: |
940 case ECustomGetServiceTableSupportbyApplicationIPC: |
946 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_14, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=ReadDeviceData"); |
941 TFLOGSTRING("TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=ReadDeviceData"); |
947 policy = TSecurityPolicy( ECapabilityReadDeviceData ); |
942 policy = TSecurityPolicy( ECapabilityReadDeviceData ); |
948 break; |
943 break; |
949 // ReadDeviceData, WriteDeviceData, ReadUserData, WriteUserData, |
944 // ReadDeviceData, WriteDeviceData, ReadUserData, WriteUserData, |
950 // Location, NetworkServices, NetworkControl |
945 // Location, NetworkServices, NetworkControl |
951 case ECustomSendAPDUReqIPC: |
946 case ECustomSendAPDUReqIPC: |
952 case ECustomSendAPDUReqV2IPC: |
947 case ECustomSendAPDUReqV2IPC: |
953 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_15, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=ReadDeviceData, WriteDeviceData, ReadUserData, WriteUserData, Location, NetworkServices, NetworkControl"); |
948 TFLOGSTRING("TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=ReadDeviceData, WriteDeviceData, ReadUserData, WriteUserData, Location, NetworkServices, NetworkControl"); |
954 policy = TSecurityPolicy( ECapabilityReadDeviceData, |
949 policy = TSecurityPolicy( ECapabilityReadDeviceData, |
955 ECapabilityWriteDeviceData, |
950 ECapabilityWriteDeviceData, |
956 ECapabilityReadUserData, |
951 ECapabilityReadUserData, |
957 ECapabilityWriteUserData, |
952 ECapabilityWriteUserData, |
958 ECapabilityLocation, |
953 ECapabilityLocation, |
962 |
957 |
963 // ReadUserData |
958 // ReadUserData |
964 case ECustomStartSimCbTopicBrowsingIPC: |
959 case ECustomStartSimCbTopicBrowsingIPC: |
965 case ECustomGetNextSimCbTopicIPC: |
960 case ECustomGetNextSimCbTopicIPC: |
966 case ECustomGetAirTimeDurationIPC: |
961 case ECustomGetAirTimeDurationIPC: |
967 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_16, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=ReadUserData"); |
962 TFLOGSTRING("TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=ReadUserData"); |
968 policy = TSecurityPolicy( ECapabilityReadUserData ); |
963 policy = TSecurityPolicy( ECapabilityReadUserData ); |
969 break; |
964 break; |
970 |
965 |
971 // WriteDeviceData |
966 // WriteDeviceData |
972 case ECustomSetAlwaysOnMode: |
967 case ECustomSetAlwaysOnMode: |
977 case ECustomNetWakeupIPC: |
972 case ECustomNetWakeupIPC: |
978 case ECustomCheckSecurityCodeIPC: |
973 case ECustomCheckSecurityCodeIPC: |
979 case ECustomDisablePhoneLockIPC: |
974 case ECustomDisablePhoneLockIPC: |
980 case ECustomSetSimMessageStatusReadIPC: |
975 case ECustomSetSimMessageStatusReadIPC: |
981 case ECustomWriteHSxPAStatusIPC: |
976 case ECustomWriteHSxPAStatusIPC: |
982 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_17, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=WriteDeviceData"); |
977 TFLOGSTRING("TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=WriteDeviceData"); |
983 policy = TSecurityPolicy( ECapabilityWriteDeviceData ); |
978 policy = TSecurityPolicy( ECapabilityWriteDeviceData ); |
984 break; |
979 break; |
985 |
980 |
986 // WriteDeviceData, Location |
981 // WriteDeviceData, Location |
987 case EWriteViagHomeZoneCacheIPC: |
982 case EWriteViagHomeZoneCacheIPC: |
988 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_18, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=WriteDeviceData, Location"); |
983 TFLOGSTRING("TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=WriteDeviceData, Location"); |
989 policy = TSecurityPolicy( ECapabilityWriteDeviceData, |
984 policy = TSecurityPolicy( ECapabilityWriteDeviceData, |
990 ECapabilityLocation ); |
985 ECapabilityLocation ); |
991 break; |
986 break; |
992 |
987 |
993 // WriteUserData |
988 // WriteUserData |
994 case ECustomDeleteSimCbTopicIPC: |
989 case ECustomDeleteSimCbTopicIPC: |
995 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_19, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=WriteUserData"); |
990 TFLOGSTRING("TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=WriteUserData"); |
996 policy = TSecurityPolicy( ECapabilityWriteUserData ); |
991 policy = TSecurityPolicy( ECapabilityWriteUserData ); |
997 break; |
992 break; |
998 |
993 |
999 // WriteDeviceData |
994 // WriteDeviceData |
1000 case EWriteViagHomeZoneUHZIUESettingsIPC: |
995 case EWriteViagHomeZoneUHZIUESettingsIPC: |
1001 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_20, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=WriteDeviceData"); |
996 TFLOGSTRING("TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=WriteDeviceData"); |
1002 policy = TSecurityPolicy( ECapabilityWriteDeviceData ); |
997 policy = TSecurityPolicy( ECapabilityWriteDeviceData ); |
1003 break; |
998 break; |
1004 default: |
999 default: |
1005 // if none of the above then we end up here, |
1000 // if none of the above then we end up here, |
1006 // as a default we already have caps as alwaysfail. |
1001 // as a default we already have caps as alwaysfail. |
1007 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_21, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=AlwaysFail"); |
1002 TFLOGSTRING("TSY: CMmCustomTsy::GetRequiredPlatSecCaps policy=AlwaysFail"); |
1008 break; |
1003 break; |
1009 } |
1004 } |
1010 |
1005 |
1011 return policy; |
1006 return policy; |
1012 } |
1007 } |
1308 const TDataPackage& aAuthData ) |
1303 const TDataPackage& aAuthData ) |
1309 { |
1304 { |
1310 TInt ret ( KErrNone ); |
1305 TInt ret ( KErrNone ); |
1311 TInt rfStateInfo ( ERfsStateInfoNormal ); |
1306 TInt rfStateInfo ( ERfsStateInfoNormal ); |
1312 |
1307 |
1313 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SIMAUTHENTICATIONL_1, "CMmCustomTSY: CMmCustomTsy::SimAuthentication" ); |
1308 TFLOGSTRING( "CMmCustomTSY: CMmCustomTsy::SimAuthentication" ); |
1314 |
1309 |
1315 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle(ECustomTsyGetSimAuthenticationData); |
1310 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle(ECustomTsyGetSimAuthenticationData); |
1316 if(0 < reqHandle) |
1311 if(0 < reqHandle) |
1317 { |
1312 { |
1318 return KErrServerBusy; |
1313 return KErrServerBusy; |
1352 authenticationDataPackage.PackData( iEapAka, &rfStateInfo ); |
1347 authenticationDataPackage.PackData( iEapAka, &rfStateInfo ); |
1353 } |
1348 } |
1354 else if ( RMmCustomAPI::TSimAuthenticationBase::EGbaBootstrap == |
1349 else if ( RMmCustomAPI::TSimAuthenticationBase::EGbaBootstrap == |
1355 basePtr->ExtensionId() ) |
1350 basePtr->ExtensionId() ) |
1356 { |
1351 { |
1357 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SIMAUTHENTICATIONL_2, "CMmCustomTSY: SimAuthenticationL::in EGbaBootstrap" ); |
1352 TFLOGSTRING( "CMmCustomTSY: SimAuthenticationL::in EGbaBootstrap" ); |
1358 iGbaBootstrap = REINTERPRET_CAST( |
1353 iGbaBootstrap = REINTERPRET_CAST( |
1359 RMmCustomAPI::TSimAuthenticationGbaBootstrap*, basePtr ); |
1354 RMmCustomAPI::TSimAuthenticationGbaBootstrap*, basePtr ); |
1360 |
1355 |
1361 rand.Append( iGbaBootstrap->iRandomParameters ); |
1356 rand.Append( iGbaBootstrap->iRandomParameters ); |
1362 |
1357 |
1363 authenticationDataPackage.PackData( iGbaBootstrap, &rfStateInfo ); |
1358 authenticationDataPackage.PackData( iGbaBootstrap, &rfStateInfo ); |
1364 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SIMAUTHENTICATIONL_3, "CMmCustomTSY: SimAuthenticationL::out EGbaBootstrap" ); |
1359 TFLOGSTRING( "CMmCustomTSY: SimAuthenticationL::out EGbaBootstrap" ); |
1365 } |
1360 } |
1366 else if ( RMmCustomAPI::TSimAuthenticationBase::EGbaBootstrapUpdate == |
1361 else if ( RMmCustomAPI::TSimAuthenticationBase::EGbaBootstrapUpdate == |
1367 basePtr->ExtensionId() ) |
1362 basePtr->ExtensionId() ) |
1368 { |
1363 { |
1369 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SIMAUTHENTICATIONL_4, "CMmCustomTSY: SimAuthenticationL::in EGbaBootstrapUpdate" ); |
1364 TFLOGSTRING( "CMmCustomTSY: SimAuthenticationL::in EGbaBootstrapUpdate" ); |
1370 iGbaBootstrapUpdate = REINTERPRET_CAST( |
1365 iGbaBootstrapUpdate = REINTERPRET_CAST( |
1371 RMmCustomAPI::TSimAuthenticationGbaBootstrapUpdate*, basePtr ); |
1366 RMmCustomAPI::TSimAuthenticationGbaBootstrapUpdate*, basePtr ); |
1372 |
1367 |
1373 authenticationDataPackage.PackData( iGbaBootstrapUpdate, &rfStateInfo ); |
1368 authenticationDataPackage.PackData( iGbaBootstrapUpdate, &rfStateInfo ); |
1374 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SIMAUTHENTICATIONL_5, "CMmCustomTSY: SimAuthenticationL::out EGbaBootstrapUpdate" ); |
1369 TFLOGSTRING( "CMmCustomTSY: SimAuthenticationL::out EGbaBootstrapUpdate" ); |
1375 } |
1370 } |
1376 else if ( |
1371 else if ( |
1377 RMmCustomAPI::TSimAuthenticationBase::EGbaBootstrapNafDerivation == |
1372 RMmCustomAPI::TSimAuthenticationBase::EGbaBootstrapNafDerivation == |
1378 basePtr->ExtensionId() ) |
1373 basePtr->ExtensionId() ) |
1379 { |
1374 { |
1380 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SIMAUTHENTICATIONL_6, "CMmCustomTSY: SimAuthenticationL::in EGbaBootstrapNafDerivation" ); |
1375 TFLOGSTRING( "CMmCustomTSY: SimAuthenticationL::in EGbaBootstrapNafDerivation" ); |
1381 iGbaNafDerivation = REINTERPRET_CAST( |
1376 iGbaNafDerivation = REINTERPRET_CAST( |
1382 RMmCustomAPI::TSimAuthenticationGbaNafDerivation*, basePtr ); |
1377 RMmCustomAPI::TSimAuthenticationGbaNafDerivation*, basePtr ); |
1383 |
1378 |
1384 authenticationDataPackage.PackData( iGbaNafDerivation, &rfStateInfo ); |
1379 authenticationDataPackage.PackData( iGbaNafDerivation, &rfStateInfo ); |
1385 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SIMAUTHENTICATIONL_7, "CMmCustomTSY: SimAuthenticationL::out EGbaBootstrapNafDerivation" ); |
1380 TFLOGSTRING( "CMmCustomTSY: SimAuthenticationL::out EGbaBootstrapNafDerivation" ); |
1386 } |
1381 } |
1387 else if ( RMmCustomAPI::TSimAuthenticationBase::EMgvMskUpdate == |
1382 else if ( RMmCustomAPI::TSimAuthenticationBase::EMgvMskUpdate == |
1388 basePtr->ExtensionId() ) |
1383 basePtr->ExtensionId() ) |
1389 { |
1384 { |
1390 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SIMAUTHENTICATIONL_8, "CMmCustomTSY: SimAuthenticationL::in EMgvMskUpdate" ); |
1385 TFLOGSTRING( "CMmCustomTSY: SimAuthenticationL::in EMgvMskUpdate" ); |
1391 iMgvMskUpdate = REINTERPRET_CAST( |
1386 iMgvMskUpdate = REINTERPRET_CAST( |
1392 RMmCustomAPI::TSimAuthenticationMgvMskUpdate*, basePtr ); |
1387 RMmCustomAPI::TSimAuthenticationMgvMskUpdate*, basePtr ); |
1393 |
1388 |
1394 authenticationDataPackage.PackData( iMgvMskUpdate, &rfStateInfo ); |
1389 authenticationDataPackage.PackData( iMgvMskUpdate, &rfStateInfo ); |
1395 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SIMAUTHENTICATIONL_9, "CMmCustomTSY: SimAuthenticationL::out EMgvMskUpdate" ); |
1390 TFLOGSTRING( "CMmCustomTSY: SimAuthenticationL::out EMgvMskUpdate" ); |
1396 } |
1391 } |
1397 else if ( RMmCustomAPI::TSimAuthenticationBase::EMgvMtkGeneration == |
1392 else if ( RMmCustomAPI::TSimAuthenticationBase::EMgvMtkGeneration == |
1398 basePtr->ExtensionId() ) |
1393 basePtr->ExtensionId() ) |
1399 { |
1394 { |
1400 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SIMAUTHENTICATIONL_10, "CMmCustomTSY: SimAuthenticationL::in EMgvMtkGeneration" ); |
1395 TFLOGSTRING( "CMmCustomTSY: SimAuthenticationL::in EMgvMtkGeneration" ); |
1401 iMgvMtkGeneration = REINTERPRET_CAST( |
1396 iMgvMtkGeneration = REINTERPRET_CAST( |
1402 RMmCustomAPI::TSimAuthenticationMgvMtkGeneration*, basePtr ); |
1397 RMmCustomAPI::TSimAuthenticationMgvMtkGeneration*, basePtr ); |
1403 |
1398 |
1404 authenticationDataPackage.PackData( iMgvMtkGeneration, &rfStateInfo ); |
1399 authenticationDataPackage.PackData( iMgvMtkGeneration, &rfStateInfo ); |
1405 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SIMAUTHENTICATIONL_11, "CMmCustomTSY: SimAuthenticationL::out EMgvMtkGeneration" ); |
1400 TFLOGSTRING( "CMmCustomTSY: SimAuthenticationL::out EMgvMtkGeneration" ); |
1406 } |
1401 } |
1407 else if ( RMmCustomAPI::TSimAuthenticationBase::EMgvMskDeletion == |
1402 else if ( RMmCustomAPI::TSimAuthenticationBase::EMgvMskDeletion == |
1408 basePtr->ExtensionId() ) |
1403 basePtr->ExtensionId() ) |
1409 { |
1404 { |
1410 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SIMAUTHENTICATIONL_12, "CMmCustomTSY: SimAuthenticationL::in EMgvMskDeletion" ); |
1405 TFLOGSTRING( "CMmCustomTSY: SimAuthenticationL::in EMgvMskDeletion" ); |
1411 iMgvMskDeletion = REINTERPRET_CAST( |
1406 iMgvMskDeletion = REINTERPRET_CAST( |
1412 RMmCustomAPI::TSimAuthenticationMgvMskDeletion*, basePtr ); |
1407 RMmCustomAPI::TSimAuthenticationMgvMskDeletion*, basePtr ); |
1413 |
1408 |
1414 authenticationDataPackage.PackData( iMgvMskDeletion, &rfStateInfo ); |
1409 authenticationDataPackage.PackData( iMgvMskDeletion, &rfStateInfo ); |
1415 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SIMAUTHENTICATIONL_13, "CMmCustomTSY: SimAuthenticationL::out EMgvMskDeletion" ); |
1410 TFLOGSTRING( "CMmCustomTSY: SimAuthenticationL::out EMgvMskDeletion" ); |
1416 } |
1411 } |
1417 else |
1412 else |
1418 { |
1413 { |
1419 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SIMAUTHENTICATIONL_14, "CMmCustomTSY: Invalid authentication type specified: %d", basePtr->ExtensionId() ); |
1414 TFLOGSTRING2( "CMmCustomTSY: Invalid authentication type specified: %d", basePtr->ExtensionId() ); |
1420 ret = KErrNotSupported; |
1415 ret = KErrNotSupported; |
1421 |
1416 |
1422 iEapSim = NULL; |
1417 iEapSim = NULL; |
1423 iEapAka = NULL; |
1418 iEapAka = NULL; |
1424 iGbaBootstrap = NULL; |
1419 iGbaBootstrap = NULL; |
1491 // |
1486 // |
1492 void CMmCustomTsy::CompleteSimAuthentication( |
1487 void CMmCustomTsy::CompleteSimAuthentication( |
1493 CMmDataPackage* aDataPackage, |
1488 CMmDataPackage* aDataPackage, |
1494 TInt aResult ) |
1489 TInt aResult ) |
1495 { |
1490 { |
1496 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESIMAUTHENTICATION_1, "TSY: CMmCustomTsy::CompleteSimAuthentication" ); |
1491 TFLOGSTRING( "TSY: CMmCustomTsy::CompleteSimAuthentication" ); |
1497 // reset req handle. Returns the deleted req handle |
1492 // reset req handle. Returns the deleted req handle |
1498 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
1493 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
1499 ECustomTsyGetSimAuthenticationData ); |
1494 ECustomTsyGetSimAuthenticationData ); |
1500 |
1495 |
1501 if ( KErrNone == aResult ) |
1496 if ( KErrNone == aResult ) |
1539 ReqCompleted( reqHandle, aResult ); |
1534 ReqCompleted( reqHandle, aResult ); |
1540 } |
1535 } |
1541 else if ( RMmCustomAPI::TSimAuthenticationBase::EGbaBootstrap == |
1536 else if ( RMmCustomAPI::TSimAuthenticationBase::EGbaBootstrap == |
1542 basePtr->ExtensionId() ) |
1537 basePtr->ExtensionId() ) |
1543 { |
1538 { |
1544 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESIMAUTHENTICATION_2, "CMmCustomTSY: CompleteSimAuthentication::in EGbaBootstrap" ); |
1539 TFLOGSTRING( "CMmCustomTSY: CompleteSimAuthentication::in EGbaBootstrap" ); |
1545 RMmCustomAPI::TSimAuthenticationGbaBootstrap* gbaBootstrap; |
1540 RMmCustomAPI::TSimAuthenticationGbaBootstrap* gbaBootstrap; |
1546 |
1541 |
1547 aDataPackage->UnPackData( &gbaBootstrap ); |
1542 aDataPackage->UnPackData( &gbaBootstrap ); |
1548 |
1543 |
1549 // Copy data to client |
1544 // Copy data to client |
1551 iGbaBootstrap->iAUTS.Copy( gbaBootstrap->iAUTS ); |
1546 iGbaBootstrap->iAUTS.Copy( gbaBootstrap->iAUTS ); |
1552 |
1547 |
1553 iGbaBootstrap = NULL; |
1548 iGbaBootstrap = NULL; |
1554 |
1549 |
1555 ReqCompleted( reqHandle, aResult ); |
1550 ReqCompleted( reqHandle, aResult ); |
1556 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESIMAUTHENTICATION_3, "CMmCustomTSY: CompleteSimAuthentication::out EGbaBootstrap" ); |
1551 TFLOGSTRING( "CMmCustomTSY: CompleteSimAuthentication::out EGbaBootstrap" ); |
1557 } |
1552 } |
1558 else if ( |
1553 else if ( |
1559 RMmCustomAPI::TSimAuthenticationBase::EGbaBootstrapUpdate == |
1554 RMmCustomAPI::TSimAuthenticationBase::EGbaBootstrapUpdate == |
1560 basePtr->ExtensionId() ) |
1555 basePtr->ExtensionId() ) |
1561 { |
1556 { |
1562 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESIMAUTHENTICATION_4, "CMmCustomTSY: CompleteSimAuthentication::in EGbaBootstrapUpdate" ); |
1557 TFLOGSTRING( "CMmCustomTSY: CompleteSimAuthentication::in EGbaBootstrapUpdate" ); |
1563 RMmCustomAPI::TSimAuthenticationGbaBootstrapUpdate* |
1558 RMmCustomAPI::TSimAuthenticationGbaBootstrapUpdate* |
1564 gbaBootstrapUpdate; |
1559 gbaBootstrapUpdate; |
1565 |
1560 |
1566 aDataPackage->UnPackData( &gbaBootstrapUpdate ); |
1561 aDataPackage->UnPackData( &gbaBootstrapUpdate ); |
1567 |
1562 |
1570 gbaBootstrapUpdate->iRandomParameters ); |
1565 gbaBootstrapUpdate->iRandomParameters ); |
1571 |
1566 |
1572 iGbaBootstrapUpdate = NULL; |
1567 iGbaBootstrapUpdate = NULL; |
1573 |
1568 |
1574 ReqCompleted( reqHandle, aResult ); |
1569 ReqCompleted( reqHandle, aResult ); |
1575 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESIMAUTHENTICATION_5, "CMmCustomTSY: CompleteSimAuthentication::out EGbaBootstrapUpdate" ); |
1570 TFLOGSTRING( "CMmCustomTSY: CompleteSimAuthentication::out EGbaBootstrapUpdate" ); |
1576 } |
1571 } |
1577 else if ( |
1572 else if ( |
1578 RMmCustomAPI::TSimAuthenticationBase:: |
1573 RMmCustomAPI::TSimAuthenticationBase:: |
1579 EGbaBootstrapNafDerivation == basePtr->ExtensionId() ) |
1574 EGbaBootstrapNafDerivation == basePtr->ExtensionId() ) |
1580 { |
1575 { |
1581 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESIMAUTHENTICATION_6, "CMmCustomTSY: CompleteSimAuthentication::in EGbaBootstrapNafDerivation" ); |
1576 TFLOGSTRING( "CMmCustomTSY: CompleteSimAuthentication::in EGbaBootstrapNafDerivation" ); |
1582 RMmCustomAPI::TSimAuthenticationGbaNafDerivation* |
1577 RMmCustomAPI::TSimAuthenticationGbaNafDerivation* |
1583 gbaNafDerivation; |
1578 gbaNafDerivation; |
1584 |
1579 |
1585 aDataPackage->UnPackData( &gbaNafDerivation ); |
1580 aDataPackage->UnPackData( &gbaNafDerivation ); |
1586 |
1581 |
1589 gbaNafDerivation->iKsExtNaf ); |
1584 gbaNafDerivation->iKsExtNaf ); |
1590 |
1585 |
1591 iGbaNafDerivation = NULL; |
1586 iGbaNafDerivation = NULL; |
1592 |
1587 |
1593 ReqCompleted( reqHandle, aResult ); |
1588 ReqCompleted( reqHandle, aResult ); |
1594 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESIMAUTHENTICATION_7, "CMmCustomTSY: CompleteSimAuthentication::out EGbaBootstrapNafDerivation" ); |
1589 TFLOGSTRING( "CMmCustomTSY: CompleteSimAuthentication::out EGbaBootstrapNafDerivation" ); |
1595 } |
1590 } |
1596 else if ( RMmCustomAPI::TSimAuthenticationBase::EMgvMskUpdate == |
1591 else if ( RMmCustomAPI::TSimAuthenticationBase::EMgvMskUpdate == |
1597 basePtr->ExtensionId() ) |
1592 basePtr->ExtensionId() ) |
1598 { |
1593 { |
1599 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESIMAUTHENTICATION_8, "CMmCustomTSY: CompleteSimAuthentication::in EMgvMskUpdate" ); |
1594 TFLOGSTRING( "CMmCustomTSY: CompleteSimAuthentication::in EMgvMskUpdate" ); |
1600 RMmCustomAPI::TSimAuthenticationMgvMskUpdate* mgvMskUpdate; |
1595 RMmCustomAPI::TSimAuthenticationMgvMskUpdate* mgvMskUpdate; |
1601 |
1596 |
1602 aDataPackage->UnPackData( &mgvMskUpdate ); |
1597 aDataPackage->UnPackData( &mgvMskUpdate ); |
1603 |
1598 |
1604 // Copy data to client |
1599 // Copy data to client |
1609 iMgvMskUpdate->iSecurityPolicyExt.Copy( mgvMskUpdate->iSecurityPolicyExt ); |
1604 iMgvMskUpdate->iSecurityPolicyExt.Copy( mgvMskUpdate->iSecurityPolicyExt ); |
1610 |
1605 |
1611 iMgvMskUpdate = NULL; |
1606 iMgvMskUpdate = NULL; |
1612 |
1607 |
1613 ReqCompleted( reqHandle, aResult ); |
1608 ReqCompleted( reqHandle, aResult ); |
1614 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESIMAUTHENTICATION_9, "CMmCustomTSY: CompleteSimAuthentication::out EMgvMskUpdate" ); |
1609 TFLOGSTRING( "CMmCustomTSY: CompleteSimAuthentication::out EMgvMskUpdate" ); |
1615 } |
1610 } |
1616 else if ( RMmCustomAPI::TSimAuthenticationBase:: |
1611 else if ( RMmCustomAPI::TSimAuthenticationBase:: |
1617 EMgvMtkGeneration == basePtr->ExtensionId() ) |
1612 EMgvMtkGeneration == basePtr->ExtensionId() ) |
1618 { |
1613 { |
1619 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESIMAUTHENTICATION_10, "CMmCustomTSY: CompleteSimAuthentication::in EMgvMtkGeneration" ); |
1614 TFLOGSTRING( "CMmCustomTSY: CompleteSimAuthentication::in EMgvMtkGeneration" ); |
1620 RMmCustomAPI::TSimAuthenticationMgvMtkGeneration* |
1615 RMmCustomAPI::TSimAuthenticationMgvMtkGeneration* |
1621 mgvMtkGeneration; |
1616 mgvMtkGeneration; |
1622 |
1617 |
1623 aDataPackage->UnPackData( &mgvMtkGeneration ); |
1618 aDataPackage->UnPackData( &mgvMtkGeneration ); |
1624 |
1619 |
1629 iMgvMtkGeneration->iParentalControl.Copy( mgvMtkGeneration->iParentalControl ); |
1624 iMgvMtkGeneration->iParentalControl.Copy( mgvMtkGeneration->iParentalControl ); |
1630 iMgvMtkGeneration->iTrafficEncryptionKey.Copy( mgvMtkGeneration->iTrafficEncryptionKey ); |
1625 iMgvMtkGeneration->iTrafficEncryptionKey.Copy( mgvMtkGeneration->iTrafficEncryptionKey ); |
1631 iMgvMtkGeneration = NULL; |
1626 iMgvMtkGeneration = NULL; |
1632 |
1627 |
1633 ReqCompleted( reqHandle, aResult ); |
1628 ReqCompleted( reqHandle, aResult ); |
1634 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESIMAUTHENTICATION_11, "CMmCustomTSY: CompleteSimAuthentication::out EMgvMtkGeneration" ); |
1629 TFLOGSTRING( "CMmCustomTSY: CompleteSimAuthentication::out EMgvMtkGeneration" ); |
1635 } |
1630 } |
1636 else if ( RMmCustomAPI::TSimAuthenticationBase:: |
1631 else if ( RMmCustomAPI::TSimAuthenticationBase:: |
1637 EMgvMskDeletion == basePtr->ExtensionId() ) |
1632 EMgvMskDeletion == basePtr->ExtensionId() ) |
1638 { |
1633 { |
1639 ReqCompleted( reqHandle, aResult ); |
1634 ReqCompleted( reqHandle, aResult ); |
1640 } |
1635 } |
1641 else |
1636 else |
1642 { |
1637 { |
1643 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESIMAUTHENTICATION_12, "CMmCustomTSY: Invalid authentication type specified: %d", basePtr->ExtensionId() ); |
1638 TFLOGSTRING2( "CMmCustomTSY: Invalid authentication type specified: %d", basePtr->ExtensionId() ); |
1644 aResult = KErrArgument; |
1639 aResult = KErrArgument; |
1645 ReqCompleted( reqHandle, aResult ); |
1640 ReqCompleted( reqHandle, aResult ); |
1646 } |
1641 } |
1647 } |
1642 } |
1648 } |
1643 } |
1680 } |
1675 } |
1681 |
1676 |
1682 else if( RMmCustomAPI::TSimAuthenticationBase::EGbaBootstrap == |
1677 else if( RMmCustomAPI::TSimAuthenticationBase::EGbaBootstrap == |
1683 basePtr->ExtensionId() ) |
1678 basePtr->ExtensionId() ) |
1684 { |
1679 { |
1685 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESIMAUTHENTICATION_13, "TSYMH: CompleteSimAuthentication RMmCustomAPI::TSimAuthenticationBase::EGbaBootstrap" ); |
1680 TFLOGSTRING( "TSYMH: CompleteSimAuthentication RMmCustomAPI::TSimAuthenticationBase::EGbaBootstrap" ); |
1686 RMmCustomAPI::TSimAuthenticationGbaBootstrap* gbabootstrap; |
1681 RMmCustomAPI::TSimAuthenticationGbaBootstrap* gbabootstrap; |
1687 aDataPackage->UnPackData( &gbabootstrap ); |
1682 aDataPackage->UnPackData( &gbabootstrap ); |
1688 |
1683 |
1689 iGbaBootstrap->iAUTS.Copy( gbabootstrap->iAUTS ); |
1684 iGbaBootstrap->iAUTS.Copy( gbabootstrap->iAUTS ); |
1690 } |
1685 } |
1765 delete sha1; |
1760 delete sha1; |
1766 sha1 = NULL; |
1761 sha1 = NULL; |
1767 |
1762 |
1768 if ( KErrArgument == ret && 0 == iFreshBitCounter ) |
1763 if ( KErrArgument == ret && 0 == iFreshBitCounter ) |
1769 { |
1764 { |
1770 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_CHECKRANDVALIDITYL_1, "CMmCustomTsy: RAND rejected" ); |
1765 TFLOGSTRING( "CMmCustomTsy: RAND rejected" ); |
1771 } |
1766 } |
1772 |
1767 |
1773 return ret; |
1768 return ret; |
1774 } |
1769 } |
1775 |
1770 |
1804 { |
1799 { |
1805 ret = file.Create( fs, KRandDb, EFileShareAny ); |
1800 ret = file.Create( fs, KRandDb, EFileShareAny ); |
1806 |
1801 |
1807 if ( KErrNone != ret ) |
1802 if ( KErrNone != ret ) |
1808 { |
1803 { |
1809 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_CREATERANDDB_1, "TSY: CMmCustomTsy: 'rand_db.cur' creation failed!" ); |
1804 TFLOGSTRING( "TSY: CMmCustomTsy: 'rand_db.cur' creation failed!" ); |
1810 } |
1805 } |
1811 else if ( KErrNone == ret ) |
1806 else if ( KErrNone == ret ) |
1812 { |
1807 { |
1813 ret = file.Open( fs, KRandDb, EFileShareAny | EFileWrite ); |
1808 ret = file.Open( fs, KRandDb, EFileShareAny | EFileWrite ); |
1814 |
1809 |
1844 ret = file.Write( counter, empty, writeSize ); |
1839 ret = file.Write( counter, empty, writeSize ); |
1845 } |
1840 } |
1846 |
1841 |
1847 if ( KErrNone != ret ) |
1842 if ( KErrNone != ret ) |
1848 { |
1843 { |
1849 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_CREATERANDDB_2, "TSY: CMmCustomTsy: 'rand_db.cur' initialization failed!" ); |
1844 TFLOGSTRING( "TSY: CMmCustomTsy: 'rand_db.cur' initialization failed!" ); |
1850 file.Close(); |
1845 file.Close(); |
1851 } |
1846 } |
1852 } |
1847 } |
1853 else |
1848 else |
1854 { |
1849 { |
1855 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_CREATERANDDB_3, "TSY: CMmCustomTsy: 'rand_db.cur' open failed!" ); |
1850 TFLOGSTRING( "TSY: CMmCustomTsy: 'rand_db.cur' open failed!" ); |
1856 } |
1851 } |
1857 } |
1852 } |
1858 |
1853 |
1859 if ( KErrNone == ret ) |
1854 if ( KErrNone == ret ) |
1860 { |
1855 { |
1866 fs.Close(); |
1861 fs.Close(); |
1867 } |
1862 } |
1868 } |
1863 } |
1869 else |
1864 else |
1870 { |
1865 { |
1871 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_CREATERANDDB_4, "TSY: CMmCustomTsy: Could not connect to file server!" ); |
1866 TFLOGSTRING( "TSY: CMmCustomTsy: Could not connect to file server!" ); |
1872 } |
1867 } |
1873 |
1868 |
1874 // Give some time for file.Close() and fs.Close() to complete |
1869 // Give some time for file.Close() and fs.Close() to complete |
1875 User::After( 200000 ); |
1870 User::After( 200000 ); |
1876 |
1871 |
1923 { |
1918 { |
1924 ret = file.Open( fs, KRandDb, EFileShareExclusive | |
1919 ret = file.Open( fs, KRandDb, EFileShareExclusive | |
1925 EFileWrite ); |
1920 EFileWrite ); |
1926 if( KErrNone != ret ) |
1921 if( KErrNone != ret ) |
1927 { |
1922 { |
1928 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_INSERTBLOBSTORANDDB_1, "TSY: CMmCustomTsy: rand_db open failed" ); |
1923 TFLOGSTRING( "TSY: CMmCustomTsy: rand_db open failed" ); |
1929 } |
1924 } |
1930 } |
1925 } |
1931 if ( KErrNone != ret ) |
1926 if ( KErrNone != ret ) |
1932 { |
1927 { |
1933 fs.Close(); |
1928 fs.Close(); |
1988 file.Close(); |
1983 file.Close(); |
1989 fs.Close(); |
1984 fs.Close(); |
1990 } |
1985 } |
1991 else |
1986 else |
1992 { |
1987 { |
1993 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_INSERTBLOBSTORANDDB_2, "TSY: CMmCustomTsy: Could not connect to file server!" ); |
1988 TFLOGSTRING( "TSY: CMmCustomTsy: Could not connect to file server!" ); |
1994 return ret; |
1989 return ret; |
1995 } |
1990 } |
1996 |
1991 |
1997 // if no new bits were found e.g. RAND will be rejected |
1992 // if no new bits were found e.g. RAND will be rejected |
1998 if ( 0 == iFreshBitCounter ) |
1993 if ( 0 == iFreshBitCounter ) |
2086 |
2081 |
2087 fs.Close(); |
2082 fs.Close(); |
2088 } |
2083 } |
2089 else |
2084 else |
2090 { |
2085 { |
2091 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_UPDATEBITCOUNTER_1, "TSY: CMmCustomTsy: Could not connect to file server!" ); |
2086 TFLOGSTRING( "TSY: CMmCustomTsy: Could not connect to file server!" ); |
2092 } |
2087 } |
2093 |
2088 |
2094 return ret; |
2089 return ret; |
2095 } |
2090 } |
2096 |
2091 |
2334 // --------------------------------------------------------------------------- |
2329 // --------------------------------------------------------------------------- |
2335 // |
2330 // |
2336 void CMmCustomTsy::CompleteTerminateCall( |
2331 void CMmCustomTsy::CompleteTerminateCall( |
2337 TInt aError ) |
2332 TInt aError ) |
2338 { |
2333 { |
2339 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETETERMINATECALL_1, "TSY: CMmCustomTsy::CompleteTerminateCall - aError: %d", aError ); |
2334 TFLOGSTRING2( "TSY: CMmCustomTsy::CompleteTerminateCall - aError: %d", aError ); |
2340 |
2335 |
2341 // reset req handle. Returns the deleted req handle |
2336 // reset req handle. Returns the deleted req handle |
2342 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
2337 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
2343 ECustomTsyTerminateCall ); |
2338 ECustomTsyTerminateCall ); |
2344 |
2339 |
2359 // --------------------------------------------------------------------------- |
2354 // --------------------------------------------------------------------------- |
2360 // |
2355 // |
2361 TInt CMmCustomTsy::NotifyDtmfEvent( |
2356 TInt CMmCustomTsy::NotifyDtmfEvent( |
2362 RMmCustomAPI::TDtmfInfo* aInfo ) |
2357 RMmCustomAPI::TDtmfInfo* aInfo ) |
2363 { |
2358 { |
2364 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_NOTIFYDTMFEVENT_1, "TSY: CMmCustomTsy::NotifyDtmfEvent"); |
2359 TFLOGSTRING("TSY: CMmCustomTsy::NotifyDtmfEvent"); |
2365 // save pointer to client data |
2360 // save pointer to client data |
2366 iNotifyInfo = aInfo; |
2361 iNotifyInfo = aInfo; |
2367 |
2362 |
2368 // save handle type |
2363 // save handle type |
2369 iReqHandleType = ECustomTsyNotifyDtmfEvent; |
2364 iReqHandleType = ECustomTsyNotifyDtmfEvent; |
2379 // |
2374 // |
2380 void CMmCustomTsy::CompleteNotifyDtmfEvent( |
2375 void CMmCustomTsy::CompleteNotifyDtmfEvent( |
2381 RMmCustomAPI::TDtmfInfo aInfo, |
2376 RMmCustomAPI::TDtmfInfo aInfo, |
2382 TInt aErrorCode ) |
2377 TInt aErrorCode ) |
2383 { |
2378 { |
2384 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYDTMFEVENT_1, "TSY: CMmCustomTsy::CompleteNotifyDtmfEvent"); |
2379 TFLOGSTRING("TSY: CMmCustomTsy::CompleteNotifyDtmfEvent"); |
2385 // reset request handle. Returns the deleted req handle. |
2380 // reset request handle. Returns the deleted req handle. |
2386 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
2381 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
2387 ECustomTsyNotifyDtmfEvent ); |
2382 ECustomTsyNotifyDtmfEvent ); |
2388 |
2383 |
2389 // check if request was called |
2384 // check if request was called |
2446 TUint8 diags = mmCall->GetDiagnostics(); |
2441 TUint8 diags = mmCall->GetDiagnostics(); |
2447 //gets diagnostic value - check value - return error code |
2442 //gets diagnostic value - check value - return error code |
2448 |
2443 |
2449 if ( 0 != diags ) |
2444 if ( 0 != diags ) |
2450 { |
2445 { |
2451 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETDIAGNOSTICINFO_1, "TSY:CMmCustomTsy::GetDiagnosticInfo: Diagnostic info=%d asked for call id=%d", diags, mmCall->CallId() ); |
2446 TFLOGSTRING3( "TSY:CMmCustomTsy::GetDiagnosticInfo: Diagnostic info=%d asked for call id=%d", diags, mmCall->CallId() ); |
2452 switch ( diags ) |
2447 switch ( diags ) |
2453 { |
2448 { |
2454 case KDiagnosticInfoBarredWithCUG: |
2449 case KDiagnosticInfoBarredWithCUG: |
2455 errorValue = KErrDiagnosticInfoBarredWithCUG; |
2450 errorValue = KErrDiagnosticInfoBarredWithCUG; |
2456 break; |
2451 break; |
2478 default: |
2473 default: |
2479 errorValue = KErrNone; |
2474 errorValue = KErrNone; |
2480 break; |
2475 break; |
2481 } |
2476 } |
2482 } |
2477 } |
2483 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETDIAGNOSTICINFO_2, "TSY: CMmCustomTsy::GetDiagnosticInfo - ReqCompleted - Error code: %d", errorValue ); |
2478 TFLOGSTRING2( "TSY: CMmCustomTsy::GetDiagnosticInfo - ReqCompleted - Error code: %d", errorValue ); |
2484 // complete errorvalue to client - inform change |
2479 // complete errorvalue to client - inform change |
2485 ReqCompleted( aTsyReqHandle, errorValue ); |
2480 ReqCompleted( aTsyReqHandle, errorValue ); |
2486 } |
2481 } |
2487 else |
2482 else |
2488 { |
2483 { |
2489 // call is not found |
2484 // call is not found |
2490 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETDIAGNOSTICINFO_3, "TSY: CMmCustomTsy::GetDiagnosticInfo - Call is not found"); |
2485 TFLOGSTRING("TSY: CMmCustomTsy::GetDiagnosticInfo - Call is not found"); |
2491 ReqCompleted( aTsyReqHandle, KErrNotFound ); |
2486 ReqCompleted( aTsyReqHandle, KErrNotFound ); |
2492 } |
2487 } |
2493 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETDIAGNOSTICINFO_4, "TSY: CMmCustomTsy::GetDiagnosticInfo - Error code: %d", errorValue ); |
2488 TFLOGSTRING2( "TSY: CMmCustomTsy::GetDiagnosticInfo - Error code: %d", errorValue ); |
2494 |
2489 |
2495 return KErrNone; |
2490 return KErrNone; |
2496 } |
2491 } |
2497 |
2492 |
2498 // --------------------------------------------------------------------------- |
2493 // --------------------------------------------------------------------------- |
2524 // |
2519 // |
2525 TInt CMmCustomTsy::GetRemoteAlertingToneStatus( |
2520 TInt CMmCustomTsy::GetRemoteAlertingToneStatus( |
2526 const TTsyReqHandle aTsyReqHandle, |
2521 const TTsyReqHandle aTsyReqHandle, |
2527 RMmCustomAPI::TRemoteAlertingToneStatus* aToneStatus ) |
2522 RMmCustomAPI::TRemoteAlertingToneStatus* aToneStatus ) |
2528 { |
2523 { |
2529 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREMOTEALERTINGTONESTATUS_1, "TSY: CMmCustomTsy::GetRemoteAlertingToneStatus"); |
2524 TFLOGSTRING("TSY: CMmCustomTsy::GetRemoteAlertingToneStatus"); |
2530 TInt ret = iMmCustomExtInterface->GetRemoteAlertingToneStatus( |
2525 TInt ret = iMmCustomExtInterface->GetRemoteAlertingToneStatus( |
2531 aToneStatus ); |
2526 aToneStatus ); |
2532 |
2527 |
2533 ReqCompleted( aTsyReqHandle, ret ); |
2528 ReqCompleted( aTsyReqHandle, ret ); |
2534 |
2529 |
2583 // |
2578 // |
2584 TInt CMmCustomTsy::GetAlsBlockedL( |
2579 TInt CMmCustomTsy::GetAlsBlockedL( |
2585 const TTsyReqHandle aTsyReqHandle, |
2580 const TTsyReqHandle aTsyReqHandle, |
2586 RMmCustomAPI::TGetAlsBlockStatus* aBlockStatus ) |
2581 RMmCustomAPI::TGetAlsBlockStatus* aBlockStatus ) |
2587 { |
2582 { |
2588 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETALSBLOCKEDL_1, "TSY: CMmCustomTsy::GetAlsBlockedL - Req handle: %d, Block status: %d", aTsyReqHandle, *aBlockStatus ); |
2583 TFLOGSTRING3( "TSY: CMmCustomTsy::GetAlsBlockedL - Req handle: %d, Block status: %d", aTsyReqHandle, *aBlockStatus ); |
2589 TTsyReqHandle getAlsBlockedHandle = |
2584 TTsyReqHandle getAlsBlockedHandle = |
2590 iTsyReqHandleStore->GetTsyReqHandle( ECustomTsyGetAlsBlocked ); |
2585 iTsyReqHandleStore->GetTsyReqHandle( ECustomTsyGetAlsBlocked ); |
2591 |
2586 |
2592 if ( 0 < getAlsBlockedHandle ) |
2587 if ( 0 < getAlsBlockedHandle ) |
2593 { |
2588 { |
2628 // |
2623 // |
2629 void CMmCustomTsy::CompleteGetAlsBlocked( |
2624 void CMmCustomTsy::CompleteGetAlsBlocked( |
2630 RMmCustomAPI::TGetAlsBlockStatus aBlockStatus, |
2625 RMmCustomAPI::TGetAlsBlockStatus aBlockStatus, |
2631 TInt aErrorCode ) |
2626 TInt aErrorCode ) |
2632 { |
2627 { |
2633 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETALSBLOCKED_1, "TSY: CMmCustomTsy::CompleteGetAlsBlocked - Block status: %d, Error code: %d", aBlockStatus, aErrorCode ); |
2628 TFLOGSTRING3( "TSY: CMmCustomTsy::CompleteGetAlsBlocked - Block status: %d, Error code: %d", aBlockStatus, aErrorCode ); |
2634 //reset req handle. Returns the deleted req handle |
2629 //reset req handle. Returns the deleted req handle |
2635 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
2630 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
2636 ECustomTsyGetAlsBlocked ); |
2631 ECustomTsyGetAlsBlocked ); |
2637 |
2632 |
2638 // check if request was called |
2633 // check if request was called |
2730 // |
2725 // |
2731 TInt CMmCustomTsy::SetAlsBlockedL( |
2726 TInt CMmCustomTsy::SetAlsBlockedL( |
2732 const TTsyReqHandle aTsyReqHandle, |
2727 const TTsyReqHandle aTsyReqHandle, |
2733 RMmCustomAPI::TSetAlsBlock* aBlockStatus ) |
2728 RMmCustomAPI::TSetAlsBlock* aBlockStatus ) |
2734 { |
2729 { |
2735 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SETALSBLOCKEDL_1, "TSY: CMmCustomTsy::SetAlsBlockedL - Req handle: %d, Block status: %d", aTsyReqHandle, *aBlockStatus ); |
2730 TFLOGSTRING3( "TSY: CMmCustomTsy::SetAlsBlockedL - Req handle: %d, Block status: %d", aTsyReqHandle, *aBlockStatus ); |
2736 // get the handle |
2731 // get the handle |
2737 TTsyReqHandle setAlsBlockedHandle = |
2732 TTsyReqHandle setAlsBlockedHandle = |
2738 iTsyReqHandleStore->GetTsyReqHandle( ECustomTsySetAlsBlocked ); |
2733 iTsyReqHandleStore->GetTsyReqHandle( ECustomTsySetAlsBlocked ); |
2739 |
2734 |
2740 if ( setAlsBlockedHandle > 0 ) |
2735 if ( setAlsBlockedHandle > 0 ) |
2780 // --------------------------------------------------------------------------- |
2775 // --------------------------------------------------------------------------- |
2781 // |
2776 // |
2782 void CMmCustomTsy::CompleteSetAlsBlocked( |
2777 void CMmCustomTsy::CompleteSetAlsBlocked( |
2783 TInt aErrorCode ) |
2778 TInt aErrorCode ) |
2784 { |
2779 { |
2785 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESETALSBLOCKED_1, "TSY: CMmCustomTsy::CompleteSetAlsBlocked - Error code: %d", aErrorCode ); |
2780 TFLOGSTRING2( "TSY: CMmCustomTsy::CompleteSetAlsBlocked - Error code: %d", aErrorCode ); |
2786 // get reaq handle for NotifyAlsBlockedChanged |
2781 // get reaq handle for NotifyAlsBlockedChanged |
2787 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
2782 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
2788 ECustomTsyNotifyAlsBlockedChanged ); |
2783 ECustomTsyNotifyAlsBlockedChanged ); |
2789 |
2784 |
2790 // check if notification was requested and Set was ok |
2785 // check if notification was requested and Set was ok |
2852 } |
2847 } |
2853 else // EDeactivateBlock == *iSetBlockStatus |
2848 else // EDeactivateBlock == *iSetBlockStatus |
2854 { |
2849 { |
2855 *iRetNotifyAlsBlockStatus = RMmCustomAPI::EBlockStatusInactive; |
2850 *iRetNotifyAlsBlockStatus = RMmCustomAPI::EBlockStatusInactive; |
2856 } |
2851 } |
2857 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYALSBLOCKEDCHANGED_1, "TSY: CMmCustomTsy::CompleteNotifyAlsBlockedChanged - Block status: %d", *iSetBlockStatus ); |
2852 TFLOGSTRING2( "TSY: CMmCustomTsy::CompleteNotifyAlsBlockedChanged - Block status: %d", *iSetBlockStatus ); |
2858 |
2853 |
2859 // reset the varible |
2854 // reset the varible |
2860 iRetNotifyAlsBlockStatus = NULL; |
2855 iRetNotifyAlsBlockStatus = NULL; |
2861 |
2856 |
2862 // complete |
2857 // complete |
2894 // |
2889 // |
2895 TInt CMmCustomTsy::GetAlsPpSupportL( |
2890 TInt CMmCustomTsy::GetAlsPpSupportL( |
2896 const TTsyReqHandle aTsyReqHandle, |
2891 const TTsyReqHandle aTsyReqHandle, |
2897 RMmCustomAPI::TAlsSupport* aSupport ) |
2892 RMmCustomAPI::TAlsSupport* aSupport ) |
2898 { |
2893 { |
2899 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETALSPPSUPPORTL_1, "TSY: CMmCustomTsy::GetAlsPpSupportL"); |
2894 TFLOGSTRING( "TSY: CMmCustomTsy::GetAlsPpSupportL"); |
2900 // save pointer to client space |
2895 // save pointer to client space |
2901 iAlsSupport = aSupport; |
2896 iAlsSupport = aSupport; |
2902 |
2897 |
2903 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
2898 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
2904 ECustomTsyGetAlsPpSupport ); |
2899 ECustomTsyGetAlsPpSupport ); |
2905 |
2900 |
2906 if ( 0 < reqHandle ) |
2901 if ( 0 < reqHandle ) |
2907 { |
2902 { |
2908 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETALSPPSUPPORTL_2, "TSY: CMmCustomTsy::GetAlsPpSupportL - Already processing, save handle"); |
2903 TFLOGSTRING( "TSY: CMmCustomTsy::GetAlsPpSupportL - Already processing, save handle"); |
2909 //The request is already in processing because of previous request |
2904 //The request is already in processing because of previous request |
2910 //Complete request with status value informing the client about |
2905 //Complete request with status value informing the client about |
2911 TCheckAlsPpSupportRequest* req = |
2906 TCheckAlsPpSupportRequest* req = |
2912 new (ELeave) TCheckAlsPpSupportRequest(); |
2907 new (ELeave) TCheckAlsPpSupportRequest(); |
2913 req->iReqHandle = aTsyReqHandle; |
2908 req->iReqHandle = aTsyReqHandle; |
2924 { |
2919 { |
2925 ReqCompleted( aTsyReqHandle, ret ); |
2920 ReqCompleted( aTsyReqHandle, ret ); |
2926 } |
2921 } |
2927 else |
2922 else |
2928 { |
2923 { |
2929 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETALSPPSUPPORTL_3, "TSY: CMmCustomTsy::GetAlsPpSupportL - Save handle"); |
2924 TFLOGSTRING( "TSY: CMmCustomTsy::GetAlsPpSupportL - Save handle"); |
2930 // Save the req handle type |
2925 // Save the req handle type |
2931 iReqHandleType = ECustomTsyGetAlsPpSupport; |
2926 iReqHandleType = ECustomTsyGetAlsPpSupport; |
2932 // save request in queue for completion |
2927 // save request in queue for completion |
2933 TCheckAlsPpSupportRequest* req = |
2928 TCheckAlsPpSupportRequest* req = |
2934 new (ELeave) TCheckAlsPpSupportRequest(); |
2929 new (ELeave) TCheckAlsPpSupportRequest(); |
2947 // (other items were commented in a header). |
2942 // (other items were commented in a header). |
2948 // --------------------------------------------------------------------------- |
2943 // --------------------------------------------------------------------------- |
2949 // |
2944 // |
2950 TInt CMmCustomTsy::GetAlsPpSupportCancel() |
2945 TInt CMmCustomTsy::GetAlsPpSupportCancel() |
2951 { |
2946 { |
2952 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETALSPPSUPPORTCANCEL_1, "TSY: CMmCustomTsy::GetAlsPpSupportCancel"); |
2947 TFLOGSTRING( "TSY: CMmCustomTsy::GetAlsPpSupportCancel"); |
2953 // reset the pointer to client data |
2948 // reset the pointer to client data |
2954 iAlsSupport = NULL; |
2949 iAlsSupport = NULL; |
2955 |
2950 |
2956 // reset the reqhandle |
2951 // reset the reqhandle |
2957 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
2952 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
2958 ECustomTsyGetAlsPpSupport ); |
2953 ECustomTsyGetAlsPpSupport ); |
2959 |
2954 |
2960 // complete |
2955 // complete |
2961 TInt checkAlsPpSupportRequestsCount = |
2956 TInt checkAlsPpSupportRequestsCount = |
2962 iCheckAlsPpSupportRequests.Count(); |
2957 iCheckAlsPpSupportRequests.Count(); |
2963 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETALSPPSUPPORTCANCEL_2, "TSY: CMmCustomTsy::GetAlsPpSupportCancel - Cancel %d requests", checkAlsPpSupportRequestsCount ); |
2958 TFLOGSTRING2( "TSY: CMmCustomTsy::GetAlsPpSupportCancel - Cancel %d requests", checkAlsPpSupportRequestsCount ); |
2964 |
2959 |
2965 for ( TInt i=0; i < checkAlsPpSupportRequestsCount ; i++ ) |
2960 for ( TInt i=0; i < checkAlsPpSupportRequestsCount ; i++ ) |
2966 { |
2961 { |
2967 TCheckAlsPpSupportRequest* req = |
2962 TCheckAlsPpSupportRequest* req = |
2968 iCheckAlsPpSupportRequests[ i ]; |
2963 iCheckAlsPpSupportRequests[ i ]; |
2984 // |
2979 // |
2985 void CMmCustomTsy::CompleteGetAlsPpSupport( |
2980 void CMmCustomTsy::CompleteGetAlsPpSupport( |
2986 RMmCustomAPI::TAlsSupport aAlsSupport, |
2981 RMmCustomAPI::TAlsSupport aAlsSupport, |
2987 TInt aErrorCode ) |
2982 TInt aErrorCode ) |
2988 { |
2983 { |
2989 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETALSPPSUPPORT_1, "TSY: CMmCustomTsy::CompleteGetAlsPpSupport - ALS support: %d, Error: %d", aAlsSupport, aErrorCode ); |
2984 TFLOGSTRING3( "TSY: CMmCustomTsy::CompleteGetAlsPpSupport - ALS support: %d, Error: %d", aAlsSupport, aErrorCode ); |
2990 TBool status = EFalse; |
2985 TBool status = EFalse; |
2991 |
2986 |
2992 // Check if the get was called internally during boot |
2987 // Check if the get was called internally during boot |
2993 if( iMmPhoneTsy->GetAlsQueryInBoot() ) |
2988 if( iMmPhoneTsy->GetAlsQueryInBoot() ) |
2994 { |
2989 { |
2995 if( RMmCustomAPI::EAlsSupportOn == aAlsSupport ) |
2990 if( RMmCustomAPI::EAlsSupportOn == aAlsSupport ) |
2996 { |
2991 { |
2997 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETALSPPSUPPORT_2, "TSY: CMmCustomTsy::CompleteGetAlsPpSupport - ALS supported by SIM" ); |
2992 TFLOGSTRING( "TSY: CMmCustomTsy::CompleteGetAlsPpSupport - ALS supported by SIM" ); |
2998 status = ETrue; |
2993 status = ETrue; |
2999 } |
2994 } |
3000 //Update ALS status from sim |
2995 //Update ALS status from sim |
3001 iMmPhoneTsy->SetAlsState( status ); |
2996 iMmPhoneTsy->SetAlsState( status ); |
3002 iMmPhoneTsy->SetAlsQueryInBoot( EFalse ); |
2997 iMmPhoneTsy->SetAlsQueryInBoot( EFalse ); |
3015 // set the information for the client |
3010 // set the information for the client |
3016 *iAlsSupport = aAlsSupport; |
3011 *iAlsSupport = aAlsSupport; |
3017 |
3012 |
3018 if( RMmCustomAPI::EAlsSupportOn == aAlsSupport ) |
3013 if( RMmCustomAPI::EAlsSupportOn == aAlsSupport ) |
3019 { |
3014 { |
3020 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETALSPPSUPPORT_3, "TSY: CMmCustomTsy::CompleteGetAlsPpSupport - ALS supported by SIM" ); |
3015 TFLOGSTRING( "TSY: CMmCustomTsy::CompleteGetAlsPpSupport - ALS supported by SIM" ); |
3021 status = ETrue; |
3016 status = ETrue; |
3022 } |
3017 } |
3023 //Update ALS status from sim |
3018 //Update ALS status from sim |
3024 iMmPhoneTsy->SetAlsState( status ); |
3019 iMmPhoneTsy->SetAlsState( status ); |
3025 } |
3020 } |
3027 // reset the internal variable |
3022 // reset the internal variable |
3028 iAlsSupport = NULL; |
3023 iAlsSupport = NULL; |
3029 // complete |
3024 // complete |
3030 TInt checkAlsPpSupportRequestsCount = |
3025 TInt checkAlsPpSupportRequestsCount = |
3031 iCheckAlsPpSupportRequests.Count(); |
3026 iCheckAlsPpSupportRequests.Count(); |
3032 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETALSPPSUPPORT_4, "TSY: CMmCustomTsy::CompleteGetAlsPpSupport - Complete %d requests", checkAlsPpSupportRequestsCount ); |
3027 TFLOGSTRING2( "TSY: CMmCustomTsy::CompleteGetAlsPpSupport - Complete %d requests", checkAlsPpSupportRequestsCount ); |
3033 |
3028 |
3034 for ( TInt i=0; i < checkAlsPpSupportRequestsCount ; i++ ) |
3029 for ( TInt i=0; i < checkAlsPpSupportRequestsCount ; i++ ) |
3035 { |
3030 { |
3036 TCheckAlsPpSupportRequest* req = |
3031 TCheckAlsPpSupportRequest* req = |
3037 iCheckAlsPpSupportRequests[ i ]; |
3032 iCheckAlsPpSupportRequests[ i ]; |
3209 void CMmCustomTsy::CompleteNotifyCipheringInfoChange( |
3204 void CMmCustomTsy::CompleteNotifyCipheringInfoChange( |
3210 TBool aCipherIndStatus, |
3205 TBool aCipherIndStatus, |
3211 TBool aCipherStatus, |
3206 TBool aCipherStatus, |
3212 TInt aErrorCode ) |
3207 TInt aErrorCode ) |
3213 { |
3208 { |
3214 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYCIPHERINGINFOCHANGE_1, "TSY:CMmCustomTsy::CompleteNotifyCipheringInfoChange entered"); |
3209 TFLOGSTRING("TSY:CMmCustomTsy::CompleteNotifyCipheringInfoChange entered"); |
3215 // this is special case, only called when Ciphering indicator |
3210 // this is special case, only called when Ciphering indicator |
3216 // is forced off for some operators |
3211 // is forced off for some operators |
3217 if ( iMmPhoneTsy->GetNetTsy()->CipheringIndicatorForcedOff() ) |
3212 if ( iMmPhoneTsy->GetNetTsy()->CipheringIndicatorForcedOff() ) |
3218 { |
3213 { |
3219 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYCIPHERINGINFOCHANGE_2, "TSY:CMmCustomTsy::CompleteNotifyCipheringInfoChange: Ciphering forced off"); |
3214 TFLOGSTRING("TSY:CMmCustomTsy::CompleteNotifyCipheringInfoChange: Ciphering forced off"); |
3220 TTsyReqHandle handle = iTsyReqHandleStore->ResetTsyReqHandle( |
3215 TTsyReqHandle handle = iTsyReqHandleStore->ResetTsyReqHandle( |
3221 ECustomTsyNotifyCipheringInfoChange ); |
3216 ECustomTsyNotifyCipheringInfoChange ); |
3222 |
3217 |
3223 if ( ECustomTsyReqHandleUnknown != handle ) |
3218 if ( ECustomTsyReqHandleUnknown != handle ) |
3224 { |
3219 { |
3225 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYCIPHERINGINFOCHANGE_3, "TSY:CMmCustomTsy::CompleteNotifyCipheringInfoChange: Ciphering forced off, request completed"); |
3220 TFLOGSTRING("TSY:CMmCustomTsy::CompleteNotifyCipheringInfoChange: Ciphering forced off, request completed"); |
3226 iRetNotifyCipheringInfoChange->iIndStatus = EFalse; |
3221 iRetNotifyCipheringInfoChange->iIndStatus = EFalse; |
3227 iRetNotifyCipheringInfoChange->iCiphStatus = ETrue; |
3222 iRetNotifyCipheringInfoChange->iCiphStatus = ETrue; |
3228 |
3223 |
3229 iRetNotifyCipheringInfoChange = NULL; |
3224 iRetNotifyCipheringInfoChange = NULL; |
3230 |
3225 |
3520 void CMmCustomTsy::Complete( |
3515 void CMmCustomTsy::Complete( |
3521 TInt aReqHandleType, |
3516 TInt aReqHandleType, |
3522 TInt aError, |
3517 TInt aError, |
3523 TInt aIPC ) |
3518 TInt aIPC ) |
3524 { |
3519 { |
3525 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETE_1, "TSY: CMmCustomTsy::Complete - ReqHandleType: %d Error: %d", aReqHandleType, aError ); |
3520 TFLOGSTRING3( "TSY: CMmCustomTsy::Complete - ReqHandleType: %d Error: %d", aReqHandleType, aError ); |
3526 TBool subTsyReqFound = EFalse; |
3521 TBool subTsyReqFound = EFalse; |
3527 TInt max = GetMaxNumberOfSubsystems(); |
3522 TInt max = GetMaxNumberOfSubsystems(); |
3528 CMmSubTsyBase** subTsyPtr = GetSubsystemArrayPtr(); |
3523 CMmSubTsyBase** subTsyPtr = GetSubsystemArrayPtr(); |
3529 |
3524 |
3530 // Check Custom TSY's subsystems' req handles first |
3525 // Check Custom TSY's subsystems' req handles first |
3745 TInt CMmCustomTsy::CheckEmergencyNumberL( |
3740 TInt CMmCustomTsy::CheckEmergencyNumberL( |
3746 const TTsyReqHandle aTsyReqHandle, |
3741 const TTsyReqHandle aTsyReqHandle, |
3747 RMmCustomAPI::TEmerNumberCheckMode* aNumberMode, |
3742 RMmCustomAPI::TEmerNumberCheckMode* aNumberMode, |
3748 TBool* aResult ) |
3743 TBool* aResult ) |
3749 { |
3744 { |
3750 OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_CHECKEMERGENCYNUMBERL_1, "TSY: CMmCustomTsy::CheckEmergencyNumberL number=%S", (aNumberMode->iNumber) ); |
3745 TFLOGSTRING2("TSY: CMmCustomTsy::CheckEmergencyNumberL number=%S", &(aNumberMode->iNumber) ); |
3751 |
3746 |
3752 TInt ret(KErrGeneral); |
3747 TInt ret(KErrGeneral); |
3753 |
3748 |
3754 TTsyReqHandle requestHandle = |
3749 TTsyReqHandle requestHandle = |
3755 iTsyReqHandleStore->GetTsyReqHandle( ECustomTsyCheckEmergencyNumber ); |
3750 iTsyReqHandleStore->GetTsyReqHandle( ECustomTsyCheckEmergencyNumber ); |
3756 |
3751 |
3757 // 3rd Dial check number |
3752 // 3rd Dial check number |
3758 if( iISVDialNumberCheck && 0 == requestHandle ) |
3753 if( iISVDialNumberCheck && 0 == requestHandle ) |
3759 { |
3754 { |
3760 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_CHECKEMERGENCYNUMBERL_2, "TSY: CMmCustomTsy::CheckEmergencyNumberL - 3rd party client nbr check aResult = %d" , aResult ); |
3755 TFLOGSTRING2("TSY: CMmCustomTsy::CheckEmergencyNumberL - 3rd party client nbr check aResult = %d" , aResult ); |
3761 iEmergencyNumberCheckMode = aNumberMode; |
3756 iEmergencyNumberCheckMode = aNumberMode; |
3762 iEmergencyNumberCheckResult = aResult; |
3757 iEmergencyNumberCheckResult = aResult; |
3763 |
3758 |
3764 // parameter for DOS call: a TEmerNumberCheckMode |
3759 // parameter for DOS call: a TEmerNumberCheckMode |
3765 CMmDataPackage dataPackage; |
3760 CMmDataPackage dataPackage; |
3769 } |
3764 } |
3770 |
3765 |
3771 //Normal case |
3766 //Normal case |
3772 else |
3767 else |
3773 { |
3768 { |
3774 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_CHECKEMERGENCYNUMBERL_3, "TSY: CMmCustomTsy::CheckEmergencyNumberL - aResult = %d" , aResult ); |
3769 TFLOGSTRING2("TSY: CMmCustomTsy::CheckEmergencyNumberL - aResult = %d" , aResult ); |
3775 |
3770 |
3776 if ( ( 0 < requestHandle || iISVDialNumberCheck ) && 0 != aTsyReqHandle ) |
3771 if ( ( 0 < requestHandle || iISVDialNumberCheck ) && 0 != aTsyReqHandle ) |
3777 { |
3772 { |
3778 // The request is already in processing because of previous request |
3773 // The request is already in processing because of previous request |
3779 ret = KErrServerBusy; |
3774 ret = KErrServerBusy; |
3817 void CMmCustomTsy::CompleteCheckEmergencyNumber( |
3812 void CMmCustomTsy::CompleteCheckEmergencyNumber( |
3818 RMmCustomAPI::TMobileTelNumber* aTelNumber, |
3813 RMmCustomAPI::TMobileTelNumber* aTelNumber, |
3819 TInt aErrorValue ) |
3814 TInt aErrorValue ) |
3820 { |
3815 { |
3821 |
3816 |
3822 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETECHECKEMERGENCYNUMBER_1, "TSY: CMmCustomTsy::CompleteCheckEmergencyNumber" ); |
3817 TFLOGSTRING("TSY: CMmCustomTsy::CompleteCheckEmergencyNumber" ); |
3823 |
3818 |
3824 // 3rd party number check completion0 |
3819 // 3rd party number check completion0 |
3825 if( iISVDialNumberCheck ) |
3820 if( iISVDialNumberCheck ) |
3826 { |
3821 { |
3827 //Reset |
3822 //Reset |
3839 } |
3834 } |
3840 |
3835 |
3841 // check is the Dial cancel NULL |
3836 // check is the Dial cancel NULL |
3842 if( iISVDialNumberCheckObject ) |
3837 if( iISVDialNumberCheckObject ) |
3843 { |
3838 { |
3844 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETECHECKEMERGENCYNUMBER_2, "TSY: CMmCustomTsy::CompleteCheckEmergencyNumber - Complete3rdPartyCallNbrCheck isEmergencyNbr = %d",isEmergencyNbr ); |
3839 TFLOGSTRING2("TSY: CMmCustomTsy::CompleteCheckEmergencyNumber - Complete3rdPartyCallNbrCheck isEmergencyNbr = %d",isEmergencyNbr ); |
3845 iISVDialNumberCheckObject->Complete3rdPartyCallNbrCheck( |
3840 iISVDialNumberCheckObject->Complete3rdPartyCallNbrCheck( |
3846 isEmergencyNbr ); |
3841 isEmergencyNbr ); |
3847 } |
3842 } |
3848 |
3843 |
3849 //reset pointer |
3844 //reset pointer |
3873 else |
3868 else |
3874 { |
3869 { |
3875 *iEmergencyNumberCheckResult = EFalse; |
3870 *iEmergencyNumberCheckResult = EFalse; |
3876 } |
3871 } |
3877 } |
3872 } |
3878 OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETECHECKEMERGENCYNUMBER_3, "TSY: CMmCustomTsy::CompleteCheckEmergencyNumber number=%S", (iEmergencyNumberCheckMode->iNumber) ); |
3873 TFLOGSTRING2("TSY: CMmCustomTsy::CompleteCheckEmergencyNumber number=%S", &(iEmergencyNumberCheckMode->iNumber) ); |
3879 |
3874 |
3880 // reset the internal variable |
3875 // reset the internal variable |
3881 iEmergencyNumberCheckResult = NULL; |
3876 iEmergencyNumberCheckResult = NULL; |
3882 iEmergencyNumberCheckMode = NULL; |
3877 iEmergencyNumberCheckMode = NULL; |
3883 // complete |
3878 // complete |
3990 |
3985 |
3991 TInt error = KErrNone; |
3986 TInt error = KErrNone; |
3992 // used phonebook is Adn |
3987 // used phonebook is Adn |
3993 if ( 0 == aPndName->CompareF( KETelIccAdnPhoneBook ) ) |
3988 if ( 0 == aPndName->CompareF( KETelIccAdnPhoneBook ) ) |
3994 { |
3989 { |
3995 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETPNDCACHESTATUS_1, "TSY: CMmCustomTsy::GetPndCacheStatus - ADN phonebook status: %d", iAdnCacheStatus); |
3990 TFLOGSTRING2("TSY: CMmCustomTsy::GetPndCacheStatus - ADN phonebook status: %d", iAdnCacheStatus); |
3996 *aPndStatus = iAdnCacheStatus; |
3991 *aPndStatus = iAdnCacheStatus; |
3997 } |
3992 } |
3998 // used phonebook is Fdn |
3993 // used phonebook is Fdn |
3999 else if ( 0 == aPndName->CompareF( KETelIccFdnPhoneBook ) ) |
3994 else if ( 0 == aPndName->CompareF( KETelIccFdnPhoneBook ) ) |
4000 { |
3995 { |
4001 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETPNDCACHESTATUS_2, "TSY: CMmCustomTsy::GetPndCacheStatus - FDN phonebook status: %d", iFdnCacheStatus); |
3996 TFLOGSTRING2("TSY: CMmCustomTsy::GetPndCacheStatus - FDN phonebook status: %d", iFdnCacheStatus); |
4002 *aPndStatus = iFdnCacheStatus; |
3997 *aPndStatus = iFdnCacheStatus; |
4003 } |
3998 } |
4004 // used phonebook doesn't have cache |
3999 // used phonebook doesn't have cache |
4005 else if ( ( 0 == aPndName->CompareF( KETelIccBdnPhoneBook ) ) || |
4000 else if ( ( 0 == aPndName->CompareF( KETelIccBdnPhoneBook ) ) || |
4006 ( 0 == aPndName->CompareF( KETelIccSdnPhoneBook ) ) || |
4001 ( 0 == aPndName->CompareF( KETelIccSdnPhoneBook ) ) || |
4007 ( 0 == aPndName->CompareF( KETelIccVoiceMailBox ) ) ) |
4002 ( 0 == aPndName->CompareF( KETelIccVoiceMailBox ) ) ) |
4008 { |
4003 { |
4009 OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETPNDCACHESTATUS_3, "TSY: CMmCustomTsy::GetPndCacheStatus - No cache for: %S ", *aPndName); |
4004 TFLOGSTRING2("TSY: CMmCustomTsy::GetPndCacheStatus - No cache for: %S ", aPndName); |
4010 *aPndStatus = RMmCustomAPI::ECacheNotUsed; |
4005 *aPndStatus = RMmCustomAPI::ECacheNotUsed; |
4011 } |
4006 } |
4012 else |
4007 else |
4013 { |
4008 { |
4014 OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETPNDCACHESTATUS_4, "TSY: CMmCustomTsy::GetPndCacheStatus - No cache found for: %S ", *aPndName); |
4009 TFLOGSTRING2("TSY: CMmCustomTsy::GetPndCacheStatus - No cache found for: %S ", aPndName); |
4015 error = KErrArgument; |
4010 error = KErrArgument; |
4016 } |
4011 } |
4017 |
4012 |
4018 ReqCompleted( aTsyReqHandle, error ); |
4013 ReqCompleted( aTsyReqHandle, error ); |
4019 |
4014 |
4028 // |
4023 // |
4029 void CMmCustomTsy::UpdateCacheStatus( |
4024 void CMmCustomTsy::UpdateCacheStatus( |
4030 RMmCustomAPI::TPndCacheStatus aPndStatus, |
4025 RMmCustomAPI::TPndCacheStatus aPndStatus, |
4031 TName& aPndName ) |
4026 TName& aPndName ) |
4032 { |
4027 { |
4033 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_UPDATECACHESTATUS_1, "TSY: CMmCustomTsy::UpdateCacheStatus - Phonebook: %S status: %d", aPndName, aPndStatus); |
4028 TFLOGSTRING3("TSY: CMmCustomTsy::UpdateCacheStatus - Phonebook: %S status: %d", &aPndName, aPndStatus); |
4034 // if used phonebook is Adn |
4029 // if used phonebook is Adn |
4035 if ( 0 == aPndName.CompareF( KETelIccAdnPhoneBook ) ) |
4030 if ( 0 == aPndName.CompareF( KETelIccAdnPhoneBook ) ) |
4036 { |
4031 { |
4037 iAdnCacheStatus = aPndStatus; |
4032 iAdnCacheStatus = aPndStatus; |
4038 } |
4033 } |
4136 // --------------------------------------------------------------------------- |
4131 // --------------------------------------------------------------------------- |
4137 // |
4132 // |
4138 TInt CMmCustomTsy::SsAdditionalInfoNotification( |
4133 TInt CMmCustomTsy::SsAdditionalInfoNotification( |
4139 RMmCustomAPI::TSsAdditionalInfo* aSsAdditionalInfo ) |
4134 RMmCustomAPI::TSsAdditionalInfo* aSsAdditionalInfo ) |
4140 { |
4135 { |
4141 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SSADDITIONALINFONOTIFICATION_1, "TSY: CMmCustomTsy::SsAdditionalInfoNotification"); |
4136 TFLOGSTRING("TSY: CMmCustomTsy::SsAdditionalInfoNotification"); |
4142 iRetSsAdditionalInfo = aSsAdditionalInfo; |
4137 iRetSsAdditionalInfo = aSsAdditionalInfo; |
4143 iReqHandleType = ECustomTsyNotifySsAdditionalInfo; |
4138 iReqHandleType = ECustomTsyNotifySsAdditionalInfo; |
4144 |
4139 |
4145 return KErrNone; |
4140 return KErrNone; |
4146 } |
4141 } |
4152 // --------------------------------------------------------------------------- |
4147 // --------------------------------------------------------------------------- |
4153 // |
4148 // |
4154 TInt CMmCustomTsy::SsAdditionalInfoNotificationCancel( |
4149 TInt CMmCustomTsy::SsAdditionalInfoNotificationCancel( |
4155 const TTsyReqHandle ) |
4150 const TTsyReqHandle ) |
4156 { |
4151 { |
4157 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SSADDITIONALINFONOTIFICATIONCANCEL_1, "TSY: CMmCustomTsy::SsAdditionalInfoNotificationCancel"); |
4152 TFLOGSTRING("TSY: CMmCustomTsy::SsAdditionalInfoNotificationCancel"); |
4158 iRetSsAdditionalInfo = NULL; |
4153 iRetSsAdditionalInfo = NULL; |
4159 |
4154 |
4160 // reset reqhandle |
4155 // reset reqhandle |
4161 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
4156 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
4162 ECustomTsyNotifySsAdditionalInfo ); |
4157 ECustomTsyNotifySsAdditionalInfo ); |
4177 // |
4172 // |
4178 void CMmCustomTsy::CompleteSsAdditionalInfoNotification( |
4173 void CMmCustomTsy::CompleteSsAdditionalInfoNotification( |
4179 RMmCustomAPI::TSsAdditionalInfo* aSsAdditionalInfo, |
4174 RMmCustomAPI::TSsAdditionalInfo* aSsAdditionalInfo, |
4180 TInt aError ) |
4175 TInt aError ) |
4181 { |
4176 { |
4182 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESSADDITIONALINFONOTIFICATION_1, "TSY: CMmCustomTsy::CompleteSsAdditionalInfoNotification"); |
4177 TFLOGSTRING("TSY: CMmCustomTsy::CompleteSsAdditionalInfoNotification"); |
4183 // reset req handle. Returns the deleted req handle |
4178 // reset req handle. Returns the deleted req handle |
4184 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
4179 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
4185 ECustomTsyNotifySsAdditionalInfo ); |
4180 ECustomTsyNotifySsAdditionalInfo ); |
4186 |
4181 |
4187 if ( ECustomTsyReqHandleUnknown != reqHandle ) |
4182 if ( ECustomTsyReqHandleUnknown != reqHandle ) |
4208 // |
4203 // |
4209 TInt CMmCustomTsy::CheckTwoDigitDialSupportL( |
4204 TInt CMmCustomTsy::CheckTwoDigitDialSupportL( |
4210 const TTsyReqHandle aTsyReqHandle, |
4205 const TTsyReqHandle aTsyReqHandle, |
4211 RMmCustomAPI::TTwoDigitDialSupport* aSupport ) |
4206 RMmCustomAPI::TTwoDigitDialSupport* aSupport ) |
4212 { |
4207 { |
4213 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_CHECKTWODIGITDIALSUPPORTL_1, "TSY: CMmCustomTsy::CheckTwoDigitDialSupportL"); |
4208 TFLOGSTRING("TSY: CMmCustomTsy::CheckTwoDigitDialSupportL"); |
4214 // save pointer to client space |
4209 // save pointer to client space |
4215 iTwoDigitDialSupport = aSupport; |
4210 iTwoDigitDialSupport = aSupport; |
4216 |
4211 |
4217 // call DOS |
4212 // call DOS |
4218 TInt error = Phone()->MessageManager()->HandleRequestL( |
4213 TInt error = Phone()->MessageManager()->HandleRequestL( |
4649 // --------------------------------------------------------------------------- |
4644 // --------------------------------------------------------------------------- |
4650 // |
4645 // |
4651 TInt CMmCustomTsy::ResetNetServerL( |
4646 TInt CMmCustomTsy::ResetNetServerL( |
4652 const TTsyReqHandle aTsyReqHandle ) |
4647 const TTsyReqHandle aTsyReqHandle ) |
4653 { |
4648 { |
4654 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_RESETNETSERVERL_1, "TSY: CMmCustomTsy::ResetNetServerL"); |
4649 TFLOGSTRING("TSY: CMmCustomTsy::ResetNetServerL"); |
4655 // call DOS (no packed parameters) |
4650 // call DOS (no packed parameters) |
4656 TInt ret = Phone()->MessageManager()->HandleRequestL( |
4651 TInt ret = Phone()->MessageManager()->HandleRequestL( |
4657 ECustomResetNetServerIPC ); |
4652 ECustomResetNetServerIPC ); |
4658 |
4653 |
4659 if ( KErrNone != ret ) |
4654 if ( KErrNone != ret ) |
4676 // --------------------------------------------------------------------------- |
4671 // --------------------------------------------------------------------------- |
4677 // |
4672 // |
4678 void CMmCustomTsy::CompleteResetNetServer( |
4673 void CMmCustomTsy::CompleteResetNetServer( |
4679 TInt aErrorValue ) |
4674 TInt aErrorValue ) |
4680 { |
4675 { |
4681 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETERESETNETSERVER_1, "TSY: CMmCustomTsy::CompleteResetNetServer - Error: %d", aErrorValue ); |
4676 TFLOGSTRING2("TSY: CMmCustomTsy::CompleteResetNetServer - Error: %d", aErrorValue ); |
4682 // reset the reqhandle |
4677 // reset the reqhandle |
4683 TTsyReqHandle tsyReqHandle = |
4678 TTsyReqHandle tsyReqHandle = |
4684 iTsyReqHandleStore->ResetTsyReqHandle( ECustomTsyResetNetServer ); |
4679 iTsyReqHandleStore->ResetTsyReqHandle( ECustomTsyResetNetServer ); |
4685 |
4680 |
4686 // Check the reqHandle |
4681 // Check the reqHandle |
4692 { |
4687 { |
4693 // Convert the error value from KErrCancel to KErrNotReady |
4688 // Convert the error value from KErrCancel to KErrNotReady |
4694 aErrorValue = KErrNotReady; |
4689 aErrorValue = KErrNotReady; |
4695 } |
4690 } |
4696 |
4691 |
4697 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETERESETNETSERVER_2, "TSY: CMmCustomTsy::CompleteResetNetServer - complete with error value: %d", aErrorValue ); |
4692 TFLOGSTRING2("TSY: CMmCustomTsy::CompleteResetNetServer - complete with error value: %d", aErrorValue ); |
4698 ReqCompleted( tsyReqHandle, aErrorValue ); |
4693 ReqCompleted( tsyReqHandle, aErrorValue ); |
4699 } |
4694 } |
4700 } |
4695 } |
4701 |
4696 |
4702 // --------------------------------------------------------------------------- |
4697 // --------------------------------------------------------------------------- |
4744 void CMmCustomTsy::CompleteNotifyNetworkConnectionFailure() |
4739 void CMmCustomTsy::CompleteNotifyNetworkConnectionFailure() |
4745 { |
4740 { |
4746 // If SIM is inserted complete network connection failure |
4741 // If SIM is inserted complete network connection failure |
4747 if ( iMmPhoneTsy->NosBootState()->iSIMReady ) |
4742 if ( iMmPhoneTsy->NosBootState()->iSIMReady ) |
4748 { |
4743 { |
4749 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYNETWORKCONNECTIONFAILURE_1, "TSY: CMmCustomTsy::CompleteNotifyNetworkConnectionFailure"); |
4744 TFLOGSTRING("TSY: CMmCustomTsy::CompleteNotifyNetworkConnectionFailure"); |
4750 // reset the reqhandle |
4745 // reset the reqhandle |
4751 TTsyReqHandle tsyReqHandle = |
4746 TTsyReqHandle tsyReqHandle = |
4752 iTsyReqHandleStore->ResetTsyReqHandle( |
4747 iTsyReqHandleStore->ResetTsyReqHandle( |
4753 ECustomTsyNotifyNetworkConnectionFailure ); |
4748 ECustomTsyNotifyNetworkConnectionFailure ); |
4754 |
4749 |
5010 // |
5005 // |
5011 TInt CMmCustomTsy::GetCurrentSystemNetworkModeL( |
5006 TInt CMmCustomTsy::GetCurrentSystemNetworkModeL( |
5012 const TTsyReqHandle aTsyReqHandle, |
5007 const TTsyReqHandle aTsyReqHandle, |
5013 TUint32* aNetworkMode ) |
5008 TUint32* aNetworkMode ) |
5014 { |
5009 { |
5015 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETCURRENTSYSTEMNETWORKMODEL_1, "CMmCustomTsy::GetCurrentSystemNetworkModeL"); |
5010 TFLOGSTRING("CMmCustomTsy::GetCurrentSystemNetworkModeL"); |
5016 TTsyReqHandle reqhandle = iTsyReqHandleStore->GetTsyReqHandle( |
5011 TTsyReqHandle reqhandle = iTsyReqHandleStore->GetTsyReqHandle( |
5017 ECustomTsyGetCurrentSystemNetworkMode ); |
5012 ECustomTsyGetCurrentSystemNetworkMode ); |
5018 |
5013 |
5019 if ( 0 < reqhandle ) |
5014 if ( 0 < reqhandle ) |
5020 { |
5015 { |
5050 // --------------------------------------------------------------------------- |
5045 // --------------------------------------------------------------------------- |
5051 // |
5046 // |
5052 TInt CMmCustomTsy::GetCurrentSystemNetworkModeCancel( |
5047 TInt CMmCustomTsy::GetCurrentSystemNetworkModeCancel( |
5053 const TTsyReqHandle aTsyReqHandle ) |
5048 const TTsyReqHandle aTsyReqHandle ) |
5054 { |
5049 { |
5055 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETCURRENTSYSTEMNETWORKMODECANCEL_1, "CMmCustomTsy::GetCurrentSystemNetworkModeCancel"); |
5050 TFLOGSTRING("CMmCustomTsy::GetCurrentSystemNetworkModeCancel"); |
5056 |
5051 |
5057 // reset pointer to client data |
5052 // reset pointer to client data |
5058 iCurrentNetworkMode = NULL; |
5053 iCurrentNetworkMode = NULL; |
5059 |
5054 |
5060 // reset reqhandle |
5055 // reset reqhandle |
5078 TInt CMmCustomTsy::GetSimFileInfoL( |
5073 TInt CMmCustomTsy::GetSimFileInfoL( |
5079 const TTsyReqHandle aTsyReqHandle, |
5074 const TTsyReqHandle aTsyReqHandle, |
5080 TDes8* aSimFileInfoPckg, |
5075 TDes8* aSimFileInfoPckg, |
5081 TDes8* aSimResponseBuffer ) |
5076 TDes8* aSimResponseBuffer ) |
5082 { |
5077 { |
5083 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETSIMFILEINFOL_1, "TSY: CMmCustomTsy::GetSimFileInfoL" ); |
5078 TFLOGSTRING( "TSY: CMmCustomTsy::GetSimFileInfoL" ); |
5084 TTsyReqHandle reqHandle = |
5079 TTsyReqHandle reqHandle = |
5085 iTsyReqHandleStore->GetTsyReqHandle( ECustomTsyGetSimFileInfo ); |
5080 iTsyReqHandleStore->GetTsyReqHandle( ECustomTsyGetSimFileInfo ); |
5086 |
5081 |
5087 // Unpack the TSimFileInfo data |
5082 // Unpack the TSimFileInfo data |
5088 RMmCustomAPI::TSimFileInfoPckg* simFileInfoPckg = |
5083 RMmCustomAPI::TSimFileInfoPckg* simFileInfoPckg = |
5099 //beginning of the file and amount of data to read |
5094 //beginning of the file and amount of data to read |
5100 if ( ( KErrNotFound != simFileInfo.iPath.Match( iGetSimFileInfoReq.iPath ) ) |
5095 if ( ( KErrNotFound != simFileInfo.iPath.Match( iGetSimFileInfoReq.iPath ) ) |
5101 && ( iGetSimFileInfoReq.iOffSet == simFileInfo.iOffSet ) |
5096 && ( iGetSimFileInfoReq.iOffSet == simFileInfo.iOffSet ) |
5102 && ( iGetSimFileInfoReq.iSize == simFileInfo.iSize ) ) |
5097 && ( iGetSimFileInfoReq.iSize == simFileInfo.iSize ) ) |
5103 { |
5098 { |
5104 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETSIMFILEINFOL_2, "TSY: CMmCustomTsy::GetSimFileInfoL - Same info already requested" ); |
5099 TFLOGSTRING( "TSY: CMmCustomTsy::GetSimFileInfoL - Same info already requested" ); |
5105 |
5100 |
5106 TGetSimFileInfoRequest* req = new ( ELeave ) TGetSimFileInfoRequest(); |
5101 TGetSimFileInfoRequest* req = new ( ELeave ) TGetSimFileInfoRequest(); |
5107 req->iReqHandle = aTsyReqHandle; |
5102 req->iReqHandle = aTsyReqHandle; |
5108 req->iSimFileInfo = aSimResponseBuffer; |
5103 req->iSimFileInfo = aSimResponseBuffer; |
5109 iGetSimFileInfoRequests.AppendL( req ); |
5104 iGetSimFileInfoRequests.AppendL( req ); |
5129 { |
5124 { |
5130 ReqCompleted( aTsyReqHandle, ret ); |
5125 ReqCompleted( aTsyReqHandle, ret ); |
5131 } |
5126 } |
5132 else |
5127 else |
5133 { |
5128 { |
5134 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETSIMFILEINFOL_3, "TSY: CMmCustomTsy::GetSimFileInfoL - Save handle" ); |
5129 TFLOGSTRING( "TSY: CMmCustomTsy::GetSimFileInfoL - Save handle" ); |
5135 // Save the req handle type |
5130 // Save the req handle type |
5136 iReqHandleType = ECustomTsyGetSimFileInfo; |
5131 iReqHandleType = ECustomTsyGetSimFileInfo; |
5137 // Save request in queue for completion |
5132 // Save request in queue for completion |
5138 TGetSimFileInfoRequest* req = new ( ELeave ) TGetSimFileInfoRequest(); |
5133 TGetSimFileInfoRequest* req = new ( ELeave ) TGetSimFileInfoRequest(); |
5139 req->iReqHandle = aTsyReqHandle; |
5134 req->iReqHandle = aTsyReqHandle; |
5151 // (other items were commented in a header). |
5146 // (other items were commented in a header). |
5152 // --------------------------------------------------------------------------- |
5147 // --------------------------------------------------------------------------- |
5153 // |
5148 // |
5154 TInt CMmCustomTsy::GetSimFileInfoCancel( TTsyReqHandle aTsyReqHandle ) |
5149 TInt CMmCustomTsy::GetSimFileInfoCancel( TTsyReqHandle aTsyReqHandle ) |
5155 { |
5150 { |
5156 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETSIMFILEINFOCANCEL_1, "TSY: CMmCustomTsy::GetSimFileInfoCancel" ); |
5151 TFLOGSTRING( "TSY: CMmCustomTsy::GetSimFileInfoCancel" ); |
5157 |
5152 |
5158 for ( TInt i = 0; i < iGetSimFileInfoRequests.Count(); i++ ) |
5153 for ( TInt i = 0; i < iGetSimFileInfoRequests.Count(); i++ ) |
5159 { |
5154 { |
5160 TGetSimFileInfoRequest* req = iGetSimFileInfoRequests[ i ]; |
5155 TGetSimFileInfoRequest* req = iGetSimFileInfoRequests[ i ]; |
5161 if ( aTsyReqHandle == req->iReqHandle ) |
5156 if ( aTsyReqHandle == req->iReqHandle ) |
5192 // |
5187 // |
5193 void CMmCustomTsy::CompleteGetSimFileInfo( |
5188 void CMmCustomTsy::CompleteGetSimFileInfo( |
5194 TDesC8* aData, |
5189 TDesC8* aData, |
5195 TInt aError ) |
5190 TInt aError ) |
5196 { |
5191 { |
5197 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETSIMFILEINFO_1, "TSY: CMmCustomTsy::CompleteGetSimFileInfo" ); |
5192 TFLOGSTRING( "TSY: CMmCustomTsy::CompleteGetSimFileInfo" ); |
5198 |
5193 |
5199 // reset the reqhandle |
5194 // reset the reqhandle |
5200 TTsyReqHandle tsyReqHandle = |
5195 TTsyReqHandle tsyReqHandle = |
5201 iTsyReqHandleStore->ResetTsyReqHandle( ECustomTsyGetSimFileInfo ); |
5196 iTsyReqHandleStore->ResetTsyReqHandle( ECustomTsyGetSimFileInfo ); |
5202 |
5197 |
5203 // Check the reqHandle |
5198 // Check the reqHandle |
5204 if ( ECustomTsyReqHandleUnknown != tsyReqHandle ) |
5199 if ( ECustomTsyReqHandleUnknown != tsyReqHandle ) |
5205 { |
5200 { |
5206 // complete |
5201 // complete |
5207 TInt getSimFileInfoRequestsCount = iGetSimFileInfoRequests.Count(); |
5202 TInt getSimFileInfoRequestsCount = iGetSimFileInfoRequests.Count(); |
5208 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETSIMFILEINFO_2, "TSY: CMmCustomTsy::CompleteGetSimFileInfo - Complete %d requests", getSimFileInfoRequestsCount ); |
5203 TFLOGSTRING2( "TSY: CMmCustomTsy::CompleteGetSimFileInfo - Complete %d requests", getSimFileInfoRequestsCount ); |
5209 |
5204 |
5210 for ( TInt i = 0; i < getSimFileInfoRequestsCount; i++ ) |
5205 for ( TInt i = 0; i < getSimFileInfoRequestsCount; i++ ) |
5211 { |
5206 { |
5212 TGetSimFileInfoRequest* req = iGetSimFileInfoRequests[ i ]; |
5207 TGetSimFileInfoRequest* req = iGetSimFileInfoRequests[ i ]; |
5213 |
5208 |
5247 const TTsyReqHandle aTsyReqHandle, |
5242 const TTsyReqHandle aTsyReqHandle, |
5248 TDes8* aLifeTimerInfoPckg ) |
5243 TDes8* aLifeTimerInfoPckg ) |
5249 { |
5244 { |
5250 |
5245 |
5251 TInt ret( KErrNone ); |
5246 TInt ret( KErrNone ); |
5252 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETLIFETIMEL_1, "TSY: CMmCustomTsy::GetLifeTimeL"); |
5247 TFLOGSTRING ("TSY: CMmCustomTsy::GetLifeTimeL"); |
5253 if ( sizeof(RMmCustomAPI::TLifeTimeData) != aLifeTimerInfoPckg->MaxLength() ) |
5248 if ( sizeof(RMmCustomAPI::TLifeTimeData) != aLifeTimerInfoPckg->MaxLength() ) |
5254 { |
5249 { |
5255 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETLIFETIMEL_2, "TSY: CMmCustomTsy::GetLifeTimeL bad size argument"); |
5250 TFLOGSTRING ("TSY: CMmCustomTsy::GetLifeTimeL bad size argument"); |
5256 // Complete the request with appropiate error |
5251 // Complete the request with appropiate error |
5257 return KErrArgument; |
5252 return KErrArgument; |
5258 } |
5253 } |
5259 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
5254 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
5260 ECustomTsyGetLifeTimerInfo ); |
5255 ECustomTsyGetLifeTimerInfo ); |
5261 if ( ECustomTsyReqHandleUnknown != reqHandle ) |
5256 if ( ECustomTsyReqHandleUnknown != reqHandle ) |
5262 { |
5257 { |
5263 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETLIFETIMEL_3, "TSY: CMmCustomTsy::GetLifeTimeL - ECustomTsyReqHandleUnknown" ); |
5258 TFLOGSTRING( "TSY: CMmCustomTsy::GetLifeTimeL - ECustomTsyReqHandleUnknown" ); |
5264 // The request is already in processing because of previous request. |
5259 // The request is already in processing because of previous request. |
5265 // Complete request with status value informing the client about |
5260 // Complete request with status value informing the client about |
5266 // the situation. |
5261 // the situation. |
5267 ReqCompleted( aTsyReqHandle, KErrServerBusy ); |
5262 ReqCompleted( aTsyReqHandle, KErrServerBusy ); |
5268 } |
5263 } |
5269 else |
5264 else |
5270 { |
5265 { |
5271 // save pointer to the packaged life timer info |
5266 // save pointer to the packaged life timer info |
5272 iLifeTimerInfoPckg = aLifeTimerInfoPckg; |
5267 iLifeTimerInfoPckg = aLifeTimerInfoPckg; |
5273 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETLIFETIMEL_4, "TSY: CMmCustomTsy::GetLifeTimeL - send request" ); |
5268 TFLOGSTRING( "TSY: CMmCustomTsy::GetLifeTimeL - send request" ); |
5274 iTsyReqHandleStore->SetTsyReqHandle( |
5269 iTsyReqHandleStore->SetTsyReqHandle( |
5275 ECustomTsyGetLifeTimerInfo, aTsyReqHandle ); |
5270 ECustomTsyGetLifeTimerInfo, aTsyReqHandle ); |
5276 ret = Phone()->MessageManager()->HandleRequestL( |
5271 ret = Phone()->MessageManager()->HandleRequestL( |
5277 ECustomGetLifeTimeIPC); |
5272 ECustomGetLifeTimeIPC); |
5278 // Check response of the extension |
5273 // Check response of the extension |
5279 if ( KErrNone != ret ) |
5274 if ( KErrNone != ret ) |
5280 { |
5275 { |
5281 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETLIFETIMEL_5, "TSY: CMmCustomTsy::GetLifeTimeL - DOS layer returned error " ); |
5276 TFLOGSTRING( "TSY: CMmCustomTsy::GetLifeTimeL - DOS layer returned error " ); |
5282 TTsyReqHandle tsyReqHandle = |
5277 TTsyReqHandle tsyReqHandle = |
5283 iTsyReqHandleStore->ResetTsyReqHandle( |
5278 iTsyReqHandleStore->ResetTsyReqHandle( |
5284 ECustomTsyGetLifeTimerInfo ); |
5279 ECustomTsyGetLifeTimerInfo ); |
5285 if ( ECustomTsyReqHandleUnknown != tsyReqHandle ) |
5280 if ( ECustomTsyReqHandleUnknown != tsyReqHandle ) |
5286 { |
5281 { |
5287 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETLIFETIMEL_6, "TSY: CMmCustomTsy::GetLifeTimeL - DOS error - unknown handle" ); |
5282 TFLOGSTRING( "TSY: CMmCustomTsy::GetLifeTimeL - DOS error - unknown handle" ); |
5288 } |
5283 } |
5289 ReqCompleted( aTsyReqHandle, ret ); |
5284 ReqCompleted( aTsyReqHandle, ret ); |
5290 } |
5285 } |
5291 } |
5286 } |
5292 return KErrNone; |
5287 return KErrNone; |
5368 // |
5363 // |
5369 TInt CMmCustomTsy::SetDriveModeL( |
5364 TInt CMmCustomTsy::SetDriveModeL( |
5370 const TTsyReqHandle aTsyReqHandle, |
5365 const TTsyReqHandle aTsyReqHandle, |
5371 RMmCustomAPI::TSetDriveMode* aModeStatus ) |
5366 RMmCustomAPI::TSetDriveMode* aModeStatus ) |
5372 { |
5367 { |
5373 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SETDRIVEMODEL_1, "TSY: CMmCustomTsy::SetDriveModeL - Req handle: %d, Mode status: %d", aTsyReqHandle, *aModeStatus ); |
5368 TFLOGSTRING3("TSY: CMmCustomTsy::SetDriveModeL - Req handle: %d, Mode status: %d", aTsyReqHandle, *aModeStatus ); |
5374 if ( (iUsingFeatureManager) && (iFeatureControl.FeatureSupported(NFeature::KDriveModeCanRestrictMtCalls) == KFeatureSupported) ) |
5369 if ( (iUsingFeatureManager) && (iFeatureControl.FeatureSupported(NFeature::KDriveModeCanRestrictMtCalls) == KFeatureSupported) ) |
5375 { |
5370 { |
5376 // get the handle |
5371 // get the handle |
5377 TTsyReqHandle setDriveModeHandle = |
5372 TTsyReqHandle setDriveModeHandle = |
5378 iTsyReqHandleStore->GetTsyReqHandle( ECustomTsySetDriveMode ); |
5373 iTsyReqHandleStore->GetTsyReqHandle( ECustomTsySetDriveMode ); |
5423 // --------------------------------------------------------------------------- |
5418 // --------------------------------------------------------------------------- |
5424 // |
5419 // |
5425 void CMmCustomTsy::CompleteSetDriveMode( |
5420 void CMmCustomTsy::CompleteSetDriveMode( |
5426 TInt aErrorCode ) |
5421 TInt aErrorCode ) |
5427 { |
5422 { |
5428 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESETDRIVEMODE_1, "TSY: CMmCustomTsy::CompleteSetDriveMode - Error code: %d", aErrorCode ); |
5423 TFLOGSTRING2( "TSY: CMmCustomTsy::CompleteSetDriveMode - Error code: %d", aErrorCode ); |
5429 if ( (iUsingFeatureManager) && (iFeatureControl.FeatureSupported(NFeature::KDriveModeCanRestrictMtCalls) == KFeatureSupported) ) |
5424 if ( (iUsingFeatureManager) && (iFeatureControl.FeatureSupported(NFeature::KDriveModeCanRestrictMtCalls) == KFeatureSupported) ) |
5430 { |
5425 { |
5431 //Reset req handle, returns the deleted req handle |
5426 //Reset req handle, returns the deleted req handle |
5432 TTsyReqHandle reqHandle = |
5427 TTsyReqHandle reqHandle = |
5433 iTsyReqHandleStore->ResetTsyReqHandle( ECustomTsySetDriveMode ); |
5428 iTsyReqHandleStore->ResetTsyReqHandle( ECustomTsySetDriveMode ); |
5596 // --------------------------------------------------------------------------- |
5591 // --------------------------------------------------------------------------- |
5597 // |
5592 // |
5598 void CMmCustomTsy::SetObjectForISVDialNumberCheck( |
5593 void CMmCustomTsy::SetObjectForISVDialNumberCheck( |
5599 CMmVoiceCallTsy* aCallObject ) |
5594 CMmVoiceCallTsy* aCallObject ) |
5600 { |
5595 { |
5601 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SETOBJECTFORISVDIALNUMBERCHECK_1, "TSY: CMmCustomTsy::SetObjectForISVDialNumberCheck aCallObject=0x%08x", aCallObject ); |
5596 TFLOGSTRING2("TSY: CMmCustomTsy::SetObjectForISVDialNumberCheck aCallObject=%x", aCallObject ); |
5602 //Save pointer for completion of check emergency number |
5597 //Save pointer for completion of check emergency number |
5603 iISVDialNumberCheckObject = aCallObject; |
5598 iISVDialNumberCheckObject = aCallObject; |
5604 //ISV dial has been requested |
5599 //ISV dial has been requested |
5605 iISVDialNumberCheck = ETrue; |
5600 iISVDialNumberCheck = ETrue; |
5606 } |
5601 } |
5612 // --------------------------------------------------------------------------- |
5607 // --------------------------------------------------------------------------- |
5613 // |
5608 // |
5614 TInt CMmCustomTsy::NotifyRauEvent( |
5609 TInt CMmCustomTsy::NotifyRauEvent( |
5615 RMmCustomAPI::TRauEventStatus* aEventStatus ) |
5610 RMmCustomAPI::TRauEventStatus* aEventStatus ) |
5616 { |
5611 { |
5617 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_NOTIFYRAUEVENT_1, "TSY: CMmCustomTsy::NotifyRauEvent"); |
5612 TFLOGSTRING("TSY: CMmCustomTsy::NotifyRauEvent"); |
5618 |
5613 |
5619 // save pointer to client data |
5614 // save pointer to client data |
5620 iRauEventStatus = aEventStatus; |
5615 iRauEventStatus = aEventStatus; |
5621 |
5616 |
5622 // save handle type |
5617 // save handle type |
5633 // |
5628 // |
5634 void CMmCustomTsy::CompleteNotifyRauEvent( |
5629 void CMmCustomTsy::CompleteNotifyRauEvent( |
5635 RMmCustomAPI::TRauEventStatus aEventStatus, |
5630 RMmCustomAPI::TRauEventStatus aEventStatus, |
5636 TInt aErrorCode ) |
5631 TInt aErrorCode ) |
5637 { |
5632 { |
5638 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYRAUEVENT_1, "TSY: CMmCustomTsy::CompleteNotifyRauEvent"); |
5633 TFLOGSTRING("TSY: CMmCustomTsy::CompleteNotifyRauEvent"); |
5639 |
5634 |
5640 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5635 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5641 ECustomTsyNotifyRauEvent ); |
5636 ECustomTsyNotifyRauEvent ); |
5642 |
5637 |
5643 // check if request was called |
5638 // check if request was called |
5689 // |
5684 // |
5690 TInt CMmCustomTsy::ReadHSxPAStatusL( |
5685 TInt CMmCustomTsy::ReadHSxPAStatusL( |
5691 const TTsyReqHandle aTsyReqHandle, |
5686 const TTsyReqHandle aTsyReqHandle, |
5692 RMmCustomAPI::THSxPAStatus* aHSxPAStatus ) |
5687 RMmCustomAPI::THSxPAStatus* aHSxPAStatus ) |
5693 { |
5688 { |
5694 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_READHSXPASTATUSL_1, "TSY: CMmCustomTsy::ReadHSxPAStatusL"); |
5689 TFLOGSTRING("TSY: CMmCustomTsy::ReadHSxPAStatusL"); |
5695 |
5690 |
5696 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
5691 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
5697 ECustomTsyReadHSxPAStatus ); |
5692 ECustomTsyReadHSxPAStatus ); |
5698 |
5693 |
5699 if ( ECustomTsyReqHandleUnknown != reqHandle ) |
5694 if ( ECustomTsyReqHandleUnknown != reqHandle ) |
5732 // |
5727 // |
5733 void CMmCustomTsy::CompleteReadHSxPAStatus( |
5728 void CMmCustomTsy::CompleteReadHSxPAStatus( |
5734 CMmDataPackage* aDataPackage, |
5729 CMmDataPackage* aDataPackage, |
5735 TInt aErrorCode ) |
5730 TInt aErrorCode ) |
5736 { |
5731 { |
5737 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEREADHSXPASTATUS_1, "TSY: CMmCustomTsy::CompleteReadHSxPAStatus"); |
5732 TFLOGSTRING("TSY: CMmCustomTsy::CompleteReadHSxPAStatus"); |
5738 |
5733 |
5739 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5734 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5740 ECustomTsyReadHSxPAStatus ); |
5735 ECustomTsyReadHSxPAStatus ); |
5741 |
5736 |
5742 if( ECustomTsyReqHandleUnknown != reqHandle ) |
5737 if( ECustomTsyReqHandleUnknown != reqHandle ) |
5744 if ( KErrNone == aErrorCode ) |
5739 if ( KErrNone == aErrorCode ) |
5745 { |
5740 { |
5746 RMmCustomAPI::THSxPAStatus status; |
5741 RMmCustomAPI::THSxPAStatus status; |
5747 aDataPackage->UnPackData( status ); |
5742 aDataPackage->UnPackData( status ); |
5748 |
5743 |
5749 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEREADHSXPASTATUS_2, "TSY: CMmCustomTsy::CompleteReadHSxPAStatus, status = %d", status); |
5744 TFLOGSTRING2("TSY: CMmCustomTsy::CompleteReadHSxPAStatus, status = %d", status); |
5750 |
5745 |
5751 // Save the status. |
5746 // Save the status. |
5752 iHSxPAStatus = status; |
5747 iHSxPAStatus = status; |
5753 |
5748 |
5754 // set the information for the client |
5749 // set the information for the client |
5773 // (other items were commented in a header). |
5768 // (other items were commented in a header). |
5774 // --------------------------------------------------------------------------- |
5769 // --------------------------------------------------------------------------- |
5775 // |
5770 // |
5776 TInt CMmCustomTsy::ReadHSxPAStatusCancel() |
5771 TInt CMmCustomTsy::ReadHSxPAStatusCancel() |
5777 { |
5772 { |
5778 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_READHSXPASTATUSCANCEL_1, "TSY: CMmCustomTsy::ReadHSxPAStatusCancel"); |
5773 TFLOGSTRING("TSY: CMmCustomTsy::ReadHSxPAStatusCancel"); |
5779 |
5774 |
5780 // reset the reqhandle |
5775 // reset the reqhandle |
5781 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5776 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5782 ECustomTsyReadHSxPAStatus ); |
5777 ECustomTsyReadHSxPAStatus ); |
5783 |
5778 |
5800 // |
5795 // |
5801 TInt CMmCustomTsy::WriteHSxPAStatusL( |
5796 TInt CMmCustomTsy::WriteHSxPAStatusL( |
5802 const TTsyReqHandle aTsyReqHandle, |
5797 const TTsyReqHandle aTsyReqHandle, |
5803 RMmCustomAPI::THSxPAStatus* aHSxPAStatus ) |
5798 RMmCustomAPI::THSxPAStatus* aHSxPAStatus ) |
5804 { |
5799 { |
5805 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_WRITEHSXPASTATUSL_1, "TSY: CMmCustomTsy::WriteHSxPAStatusL. New status: %d", *aHSxPAStatus); |
5800 TFLOGSTRING2("TSY: CMmCustomTsy::WriteHSxPAStatusL. New status: %d", *aHSxPAStatus); |
5806 |
5801 |
5807 iSetHSxPAStatus = aHSxPAStatus; |
5802 iSetHSxPAStatus = aHSxPAStatus; |
5808 |
5803 |
5809 // get the handle |
5804 // get the handle |
5810 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
5805 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
5843 // --------------------------------------------------------------------------- |
5838 // --------------------------------------------------------------------------- |
5844 // |
5839 // |
5845 void CMmCustomTsy::CompleteWriteHSxPAStatus( |
5840 void CMmCustomTsy::CompleteWriteHSxPAStatus( |
5846 TInt aErrorCode ) |
5841 TInt aErrorCode ) |
5847 { |
5842 { |
5848 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEWRITEHSXPASTATUS_1, "TSY: CMmCustomTsy::CompleteWriteHSxPAStatus"); |
5843 TFLOGSTRING("TSY: CMmCustomTsy::CompleteWriteHSxPAStatus"); |
5849 |
5844 |
5850 //reset req handle. |
5845 //reset req handle. |
5851 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5846 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5852 ECustomTsyWriteHSxPAStatus ); |
5847 ECustomTsyWriteHSxPAStatus ); |
5853 |
5848 |
5872 // (other items were commented in a header). |
5867 // (other items were commented in a header). |
5873 // --------------------------------------------------------------------------- |
5868 // --------------------------------------------------------------------------- |
5874 // |
5869 // |
5875 TInt CMmCustomTsy::WriteHSxPAStatusCancel() |
5870 TInt CMmCustomTsy::WriteHSxPAStatusCancel() |
5876 { |
5871 { |
5877 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_WRITEHSXPASTATUSCANCEL_1, "TSY: CMmCustomTsy::WriteHSxPAStatusCancel"); |
5872 TFLOGSTRING("TSY: CMmCustomTsy::WriteHSxPAStatusCancel"); |
5878 |
5873 |
5879 // reset the reqhandle |
5874 // reset the reqhandle |
5880 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5875 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5881 ECustomTsyWriteHSxPAStatus ); |
5876 ECustomTsyWriteHSxPAStatus ); |
5882 |
5877 |
5898 // --------------------------------------------------------------------------- |
5893 // --------------------------------------------------------------------------- |
5899 // |
5894 // |
5900 TInt CMmCustomTsy::NotifyHSxPAStatus( |
5895 TInt CMmCustomTsy::NotifyHSxPAStatus( |
5901 RMmCustomAPI::THSxPAStatus* aHSxPAStatus ) |
5896 RMmCustomAPI::THSxPAStatus* aHSxPAStatus ) |
5902 { |
5897 { |
5903 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_NOTIFYHSXPASTATUS_1, "TSY: CMmCustomTsy::NotifyHSxPAStatus"); |
5898 TFLOGSTRING("TSY: CMmCustomTsy::NotifyHSxPAStatus"); |
5904 |
5899 |
5905 // save pointer to client data |
5900 // save pointer to client data |
5906 iRetNotifyHSxPAStatus = aHSxPAStatus; |
5901 iRetNotifyHSxPAStatus = aHSxPAStatus; |
5907 |
5902 |
5908 // set the reqhandle type |
5903 // set the reqhandle type |
5919 // |
5914 // |
5920 void CMmCustomTsy::CompleteNotifyHSxPAStatus( |
5915 void CMmCustomTsy::CompleteNotifyHSxPAStatus( |
5921 CMmDataPackage* aDataPackage, |
5916 CMmDataPackage* aDataPackage, |
5922 TInt aErrorCode ) |
5917 TInt aErrorCode ) |
5923 { |
5918 { |
5924 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYHSXPASTATUS_1, "TSY: CMmCustomTsy::CompleteNotifyHSxPAStatus, Error: %d", aErrorCode); |
5919 TFLOGSTRING2("TSY: CMmCustomTsy::CompleteNotifyHSxPAStatus, Error: %d", aErrorCode); |
5925 |
5920 |
5926 RMmCustomAPI::THSxPAStatus status; |
5921 RMmCustomAPI::THSxPAStatus status; |
5927 aDataPackage->UnPackData( status ); |
5922 aDataPackage->UnPackData( status ); |
5928 |
5923 |
5929 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYHSXPASTATUS_2, "TSY: CMmCustomTsy::CompleteNotifyHSxPAStatus, old status: %d", iHSxPAStatus); |
5924 TFLOGSTRING2("TSY: CMmCustomTsy::CompleteNotifyHSxPAStatus, old status: %d", iHSxPAStatus); |
5930 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYHSXPASTATUS_3, "TSY: CMmCustomTsy::CompleteNotifyHSxPAStatus, new status: %d", status); |
5925 TFLOGSTRING2("TSY: CMmCustomTsy::CompleteNotifyHSxPAStatus, new status: %d", status); |
5931 |
5926 |
5932 // check if status was changed |
5927 // check if status was changed |
5933 if ( iHSxPAStatus != status ) |
5928 if ( iHSxPAStatus != status ) |
5934 { |
5929 { |
5935 // Check if notification was requested |
5930 // Check if notification was requested |
5968 // (other items were commented in a header). |
5963 // (other items were commented in a header). |
5969 // --------------------------------------------------------------------------- |
5964 // --------------------------------------------------------------------------- |
5970 // |
5965 // |
5971 TInt CMmCustomTsy::NotifyHSxPAStatusCancel() |
5966 TInt CMmCustomTsy::NotifyHSxPAStatusCancel() |
5972 { |
5967 { |
5973 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_NOTIFYHSXPASTATUSCANCEL_1, "TSY: CMmCustomTsy::NotifyHSxPAStatusCancel"); |
5968 TFLOGSTRING("TSY: CMmCustomTsy::NotifyHSxPAStatusCancel"); |
5974 |
5969 |
5975 // reset the reqhandle |
5970 // reset the reqhandle |
5976 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5971 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5977 ECustomTsyNotifyHSxPAStatus ); |
5972 ECustomTsyNotifyHSxPAStatus ); |
5978 |
5973 |
5995 // |
5990 // |
5996 TInt CMmCustomTsy::GetIccCallForwardingStatusL( |
5991 TInt CMmCustomTsy::GetIccCallForwardingStatusL( |
5997 TTsyReqHandle /*aTsyReqHandle*/, |
5992 TTsyReqHandle /*aTsyReqHandle*/, |
5998 TDes8* aCFIndicators ) |
5993 TDes8* aCFIndicators ) |
5999 { |
5994 { |
6000 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETICCCALLFORWARDINGSTATUSL_1, "TSY: CMmCustomTsy::GetIccCallForwardingStatusL"); |
5995 TFLOGSTRING("TSY: CMmCustomTsy::GetIccCallForwardingStatusL"); |
6001 |
5996 |
6002 TInt ret( KErrGeneral ); |
5997 TInt ret( KErrGeneral ); |
6003 |
5998 |
6004 //Get reqhandle |
5999 //Get reqhandle |
6005 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
6000 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
6041 // |
6036 // |
6042 void CMmCustomTsy::CompleteGetIccCallForwardingStatus( |
6037 void CMmCustomTsy::CompleteGetIccCallForwardingStatus( |
6043 CMmDataPackage* aDataPackage, |
6038 CMmDataPackage* aDataPackage, |
6044 TInt aErrorCode ) |
6039 TInt aErrorCode ) |
6045 { |
6040 { |
6046 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETICCCALLFORWARDINGSTATUS_1, "TSY: CMmCustomTsy::CompleteGetIccCallForwardingStatus, aErrorCode=%d", aErrorCode ); |
6041 TFLOGSTRING2("TSY: CMmCustomTsy::CompleteGetIccCallForwardingStatus, aErrorCode=%d", aErrorCode ); |
6047 |
6042 |
6048 //reset req handle. |
6043 //reset req handle. |
6049 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6044 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6050 ECustomTsyGetIccCallForwardingStatus ); |
6045 ECustomTsyGetIccCallForwardingStatus ); |
6051 |
6046 |
6056 RMmCustomAPI::TCFIndicatorsPckg* tcfIndicatorPckg = REINTERPRET_CAST( |
6051 RMmCustomAPI::TCFIndicatorsPckg* tcfIndicatorPckg = REINTERPRET_CAST( |
6057 RMmCustomAPI::TCFIndicatorsPckg*, iRetCFIndicators ); |
6052 RMmCustomAPI::TCFIndicatorsPckg*, iRetCFIndicators ); |
6058 RMmCustomAPI::TCFIndicators& tcfIndicator = ( *tcfIndicatorPckg )(); |
6053 RMmCustomAPI::TCFIndicators& tcfIndicator = ( *tcfIndicatorPckg )(); |
6059 |
6054 |
6060 aDataPackage->UnPackData( iCurrentTCFIndicator ); |
6055 aDataPackage->UnPackData( iCurrentTCFIndicator ); |
6061 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETICCCALLFORWARDINGSTATUS_2, "TSY: CMmCustomTsy::CompleteGetIccCallForwardingStatus, indicator=%u", iCurrentTCFIndicator.iIndicator ); |
6056 TFLOGSTRING2("TSY: CMmCustomTsy::CompleteGetIccCallForwardingStatus, indicator=%u", iCurrentTCFIndicator.iIndicator ); |
6062 |
6057 |
6063 tcfIndicator.iIndicator = iCurrentTCFIndicator.iIndicator; |
6058 tcfIndicator.iIndicator = iCurrentTCFIndicator.iIndicator; |
6064 tcfIndicator.iCFNumber.iTypeOfNumber = |
6059 tcfIndicator.iCFNumber.iTypeOfNumber = |
6065 iCurrentTCFIndicator.iCFNumber.iTypeOfNumber; |
6060 iCurrentTCFIndicator.iCFNumber.iTypeOfNumber; |
6066 tcfIndicator.iCFNumber.iNumberPlan = |
6061 tcfIndicator.iCFNumber.iNumberPlan = |
6069 iCurrentTCFIndicator.iCFNumber.iTelNumber ); |
6064 iCurrentTCFIndicator.iCFNumber.iTelNumber ); |
6070 |
6065 |
6071 // Update CenRep with latest valid data |
6066 // Update CenRep with latest valid data |
6072 if( &iCurrentTCFIndicator ) |
6067 if( &iCurrentTCFIndicator ) |
6073 { |
6068 { |
6074 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETICCCALLFORWARDINGSTATUS_3, "TSY: CMmCustomTsy::CompleteGetIccCallForwardingStatus : Update Central Repository"); |
6069 TFLOGSTRING("TSY: CMmCustomTsy::CompleteGetIccCallForwardingStatus : Update Central Repository"); |
6075 TPckg<TUint32> tempPckg( iCurrentTCFIndicator.iIndicator ); |
6070 TPckg<TUint32> tempPckg( iCurrentTCFIndicator.iIndicator ); |
6076 iCFISCentRep->Set( KCtsyCallForwardingIndicator, tempPckg ); |
6071 iCFISCentRep->Set( KCtsyCallForwardingIndicator, tempPckg ); |
6077 |
6072 |
6078 iCFISPrivateCentRep->Set( KCtsyCallForwardingNumberPlan, |
6073 iCFISPrivateCentRep->Set( KCtsyCallForwardingNumberPlan, |
6079 iCurrentTCFIndicator.iCFNumber.iNumberPlan ); |
6074 iCurrentTCFIndicator.iCFNumber.iNumberPlan ); |
6094 { |
6089 { |
6095 if( KErrNone == aErrorCode ) |
6090 if( KErrNone == aErrorCode ) |
6096 { |
6091 { |
6097 iGetIccCfStatusBootUp = EFalse; |
6092 iGetIccCfStatusBootUp = EFalse; |
6098 aDataPackage->UnPackData( iCurrentTCFIndicator ); |
6093 aDataPackage->UnPackData( iCurrentTCFIndicator ); |
6099 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETICCCALLFORWARDINGSTATUS_4, "TSY: CMmCustomTsy::CompleteGetIccCallForwardingStatus CenRep key UnconditionalCFStatus not RESETED."); |
6094 TFLOGSTRING("TSY: CMmCustomTsy::CompleteGetIccCallForwardingStatus CenRep key UnconditionalCFStatus not RESETED."); |
6100 |
6095 |
6101 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETICCCALLFORWARDINGSTATUS_5, "TSY: CMmCustomTsy::CompleteGetIccCallForwardingStatus : Bootup case, KCtsyCallForwardingIndicator indicator=%u", iCurrentTCFIndicator.iIndicator ); |
6096 TFLOGSTRING2("TSY: CMmCustomTsy::CompleteGetIccCallForwardingStatus : Bootup case, KCtsyCallForwardingIndicator indicator=%u", iCurrentTCFIndicator.iIndicator ); |
6102 |
6097 |
6103 TPckg<TUint32> tempPckg( iCurrentTCFIndicator.iIndicator ); |
6098 TPckg<TUint32> tempPckg( iCurrentTCFIndicator.iIndicator ); |
6104 iCFISCentRep->Set( KCtsyCallForwardingIndicator, tempPckg ); |
6099 iCFISCentRep->Set( KCtsyCallForwardingIndicator, tempPckg ); |
6105 iCFISPrivateCentRep->Set( KCtsyCallForwardingNumberPlan, |
6100 iCFISPrivateCentRep->Set( KCtsyCallForwardingNumberPlan, |
6106 iCurrentTCFIndicator.iCFNumber.iNumberPlan ); |
6101 iCurrentTCFIndicator.iCFNumber.iNumberPlan ); |
6107 iCFISCentRep->Set( KCtsyCallForwardingNumber, |
6102 iCFISCentRep->Set( KCtsyCallForwardingNumber, |
6108 iCurrentTCFIndicator.iCFNumber.iTelNumber ); |
6103 iCurrentTCFIndicator.iCFNumber.iTelNumber ); |
6109 iCFISPrivateCentRep->Set( KCtsyCallForwardingMspId, |
6104 iCFISPrivateCentRep->Set( KCtsyCallForwardingMspId, |
6110 iCurrentTCFIndicator.iMultipleSubscriberProfileID ); |
6105 iCurrentTCFIndicator.iMultipleSubscriberProfileID ); |
6111 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETICCCALLFORWARDINGSTATUS_6, "TSY: CMmCustomTsy::CompleteGetIccCallForwardingStatus CenRep updated."); |
6106 TFLOGSTRING("TSY: CMmCustomTsy::CompleteGetIccCallForwardingStatus CenRep updated."); |
6112 } |
6107 } |
6113 } |
6108 } |
6114 } |
6109 } |
6115 |
6110 |
6116 // --------------------------------------------------------------------------- |
6111 // --------------------------------------------------------------------------- |
6120 // --------------------------------------------------------------------------- |
6115 // --------------------------------------------------------------------------- |
6121 // |
6116 // |
6122 TInt CMmCustomTsy::GetIccCallForwardingStatusCancel( |
6117 TInt CMmCustomTsy::GetIccCallForwardingStatusCancel( |
6123 const TTsyReqHandle aTsyReqHandle ) |
6118 const TTsyReqHandle aTsyReqHandle ) |
6124 { |
6119 { |
6125 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETICCCALLFORWARDINGSTATUSCANCEL_1, "CMmCustomTsy::GetIccCallForwardingStatusCancel"); |
6120 TFLOGSTRING("CMmCustomTsy::GetIccCallForwardingStatusCancel"); |
6126 // reset reqhandle |
6121 // reset reqhandle |
6127 iTsyReqHandleStore->ResetTsyReqHandle( |
6122 iTsyReqHandleStore->ResetTsyReqHandle( |
6128 ECustomTsyGetIccCallForwardingStatus ); |
6123 ECustomTsyGetIccCallForwardingStatus ); |
6129 |
6124 |
6130 // complete with KErrCancel |
6125 // complete with KErrCancel |
6182 // |
6177 // |
6183 void CMmCustomTsy::CompleteNotifyIccCallForwardingStatusChange( |
6178 void CMmCustomTsy::CompleteNotifyIccCallForwardingStatusChange( |
6184 CMmDataPackage* aDataPackage, |
6179 CMmDataPackage* aDataPackage, |
6185 TInt aErrorCode ) |
6180 TInt aErrorCode ) |
6186 { |
6181 { |
6187 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYICCCALLFORWARDINGSTATUSCHANGE_1, "TSY: CMmCustomTsy::CompleteNotifyIccCallForwardingStatusChange, Error: %d", aErrorCode); |
6182 TFLOGSTRING2("TSY: CMmCustomTsy::CompleteNotifyIccCallForwardingStatusChange, Error: %d", aErrorCode); |
6188 |
6183 |
6189 RMmCustomAPI::TCFIndicators tempNotifyCFIndicator; |
6184 RMmCustomAPI::TCFIndicators tempNotifyCFIndicator; |
6190 aDataPackage->UnPackData( tempNotifyCFIndicator ); |
6185 aDataPackage->UnPackData( tempNotifyCFIndicator ); |
6191 |
6186 |
6192 TBool isChanged = IsIccCallForwardingStatusChanged( |
6187 TBool isChanged = IsIccCallForwardingStatusChanged( |
6202 { |
6197 { |
6203 //Update CenRep |
6198 //Update CenRep |
6204 |
6199 |
6205 TPckg<TUint32> tempPckg( iCurrentTCFIndicator.iIndicator ); |
6200 TPckg<TUint32> tempPckg( iCurrentTCFIndicator.iIndicator ); |
6206 iCFISCentRep->Set( KCtsyCallForwardingIndicator, tempPckg ); |
6201 iCFISCentRep->Set( KCtsyCallForwardingIndicator, tempPckg ); |
6207 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYICCCALLFORWARDINGSTATUSCHANGE_2, "TSY: CMmCustomTsy::CompleteNotifyIccCallForwardingStatusChange : Update CenRep, KCtsyCallForwardingIndicator indicator=%u", iCurrentTCFIndicator.iIndicator ); |
6202 TFLOGSTRING2("TSY: CMmCustomTsy::CompleteNotifyIccCallForwardingStatusChange : Update CenRep, KCtsyCallForwardingIndicator indicator=%u", iCurrentTCFIndicator.iIndicator ); |
6208 |
6203 |
6209 iCFISPrivateCentRep->Set( KCtsyCallForwardingNumberPlan, |
6204 iCFISPrivateCentRep->Set( KCtsyCallForwardingNumberPlan, |
6210 iCurrentTCFIndicator.iCFNumber.iNumberPlan ); |
6205 iCurrentTCFIndicator.iCFNumber.iNumberPlan ); |
6211 |
6206 |
6212 iCFISCentRep->Set( KCtsyCallForwardingNumber, |
6207 iCFISCentRep->Set( KCtsyCallForwardingNumber, |
6213 iCurrentTCFIndicator.iCFNumber.iTelNumber ); |
6208 iCurrentTCFIndicator.iCFNumber.iTelNumber ); |
6214 |
6209 |
6215 iCFISPrivateCentRep->Set( KCtsyCallForwardingMspId, |
6210 iCFISPrivateCentRep->Set( KCtsyCallForwardingMspId, |
6216 iCurrentTCFIndicator.iMultipleSubscriberProfileID ); |
6211 iCurrentTCFIndicator.iMultipleSubscriberProfileID ); |
6217 //CenRep updated |
6212 //CenRep updated |
6218 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYICCCALLFORWARDINGSTATUSCHANGE_3, "TSY: CMmCustomTsy::CompleteNotifyIccCallForwardingStatusChange CenRep updated."); |
6213 TFLOGSTRING("TSY: CMmCustomTsy::CompleteNotifyIccCallForwardingStatusChange CenRep updated."); |
6219 } |
6214 } |
6220 |
6215 |
6221 // Check if notification was requested |
6216 // Check if notification was requested |
6222 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6217 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6223 ECustomTsyNotifyIccCallForwardingStatusChange ); |
6218 ECustomTsyNotifyIccCallForwardingStatusChange ); |
6312 // --------------------------------------------------------------------------- |
6307 // --------------------------------------------------------------------------- |
6313 // |
6308 // |
6314 TInt CMmCustomTsy::GetCellInfoL( |
6309 TInt CMmCustomTsy::GetCellInfoL( |
6315 TDes8* aCellInfoPckg ) |
6310 TDes8* aCellInfoPckg ) |
6316 { |
6311 { |
6317 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETCELLINFOL_1, "TSY: CMmCustomTsy::GetCellInfo"); |
6312 TFLOGSTRING("TSY: CMmCustomTsy::GetCellInfo"); |
6318 |
6313 |
6319 TInt ret = KErrServerBusy; |
6314 TInt ret = KErrServerBusy; |
6320 |
6315 |
6321 // Try to get request handle |
6316 // Try to get request handle |
6322 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
6317 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
6352 // (other items were commented in a header). |
6347 // (other items were commented in a header). |
6353 // --------------------------------------------------------------------------- |
6348 // --------------------------------------------------------------------------- |
6354 // |
6349 // |
6355 TInt CMmCustomTsy::GetCellInfoCancel() |
6350 TInt CMmCustomTsy::GetCellInfoCancel() |
6356 { |
6351 { |
6357 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETCELLINFOCANCEL_1, "TSY: CMmCustomTsy::GetCellInfoCancel"); |
6352 TFLOGSTRING("TSY: CMmCustomTsy::GetCellInfoCancel"); |
6358 |
6353 |
6359 // reset the req handle |
6354 // reset the req handle |
6360 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6355 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6361 ECustomTsyGetCellInfo ); |
6356 ECustomTsyGetCellInfo ); |
6362 |
6357 |
6380 // |
6375 // |
6381 void CMmCustomTsy::CompleteGetCellInfo( |
6376 void CMmCustomTsy::CompleteGetCellInfo( |
6382 RMmCustomAPI::TMmCellInfo* aCellInfo, |
6377 RMmCustomAPI::TMmCellInfo* aCellInfo, |
6383 TInt aErrorValue ) |
6378 TInt aErrorValue ) |
6384 { |
6379 { |
6385 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETCELLINFO_1, "TSY: CMmCustomTsy::CompleteGetCellInfo - aErrorValue %d", aErrorValue); |
6380 TFLOGSTRING2("TSY: CMmCustomTsy::CompleteGetCellInfo - aErrorValue %d", aErrorValue); |
6386 |
6381 |
6387 // reset the req handle |
6382 // reset the req handle |
6388 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6383 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6389 ECustomTsyGetCellInfo ); |
6384 ECustomTsyGetCellInfo ); |
6390 |
6385 |
6411 // --------------------------------------------------------------------------- |
6406 // --------------------------------------------------------------------------- |
6412 // |
6407 // |
6413 TInt CMmCustomTsy::NotifyCellInfoChange( |
6408 TInt CMmCustomTsy::NotifyCellInfoChange( |
6414 TDes8* aCellInfoPckg ) |
6409 TDes8* aCellInfoPckg ) |
6415 { |
6410 { |
6416 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_NOTIFYCELLINFOCHANGE_1, "TSY: CMmCustomTsy::NotifyCellInfoChange"); |
6411 TFLOGSTRING("TSY: CMmCustomTsy::NotifyCellInfoChange"); |
6417 |
6412 |
6418 RMmCustomAPI::TMmCellInfo temp; |
6413 RMmCustomAPI::TMmCellInfo temp; |
6419 RMmCustomAPI::TMmCellInfoPckg tempPckg(temp); |
6414 RMmCustomAPI::TMmCellInfoPckg tempPckg(temp); |
6420 |
6415 |
6421 TInt paramLength = aCellInfoPckg->MaxLength(); |
6416 TInt paramLength = aCellInfoPckg->MaxLength(); |
6441 // |
6436 // |
6442 void CMmCustomTsy::CompleteNotifyCellInfoChange( |
6437 void CMmCustomTsy::CompleteNotifyCellInfoChange( |
6443 RMmCustomAPI::TMmCellInfo* aCellInfo, |
6438 RMmCustomAPI::TMmCellInfo* aCellInfo, |
6444 TInt aErrorCode ) |
6439 TInt aErrorCode ) |
6445 { |
6440 { |
6446 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYCELLINFOCHANGE_1, "TSY: CMmCustomTsy::CompleteNotifyCellInfoChange Error: %d", aErrorCode); |
6441 TFLOGSTRING2("TSY: CMmCustomTsy::CompleteNotifyCellInfoChange Error: %d", aErrorCode); |
6447 |
6442 |
6448 // Check if notification was requested |
6443 // Check if notification was requested |
6449 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6444 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6450 ECustomTsyNotifyCellInfoChange ); |
6445 ECustomTsyNotifyCellInfoChange ); |
6451 |
6446 |
6473 // (other items were commented in a header). |
6468 // (other items were commented in a header). |
6474 // --------------------------------------------------------------------------- |
6469 // --------------------------------------------------------------------------- |
6475 // |
6470 // |
6476 TInt CMmCustomTsy::NotifyCellInfoChangeCancel() |
6471 TInt CMmCustomTsy::NotifyCellInfoChangeCancel() |
6477 { |
6472 { |
6478 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_NOTIFYCELLINFOCHANGECANCEL_1, "TSY: CMmCustomTsy::NotifyCellInfoChangeCancel"); |
6473 TFLOGSTRING("TSY: CMmCustomTsy::NotifyCellInfoChangeCancel"); |
6479 |
6474 |
6480 // reset the reqhandle |
6475 // reset the reqhandle |
6481 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6476 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6482 ECustomTsyNotifyCellInfoChange ); |
6477 ECustomTsyNotifyCellInfoChange ); |
6483 |
6478 |
6499 // --------------------------------------------------------------------------- |
6494 // --------------------------------------------------------------------------- |
6500 // |
6495 // |
6501 RMmCustomAPI::TPndCacheStatus CMmCustomTsy::GetPhonebookCacheStatus( |
6496 RMmCustomAPI::TPndCacheStatus CMmCustomTsy::GetPhonebookCacheStatus( |
6502 TUint8 aPhoneBookType ) |
6497 TUint8 aPhoneBookType ) |
6503 { |
6498 { |
6504 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETPHONEBOOKCACHESTATUS_1, "TSY: CMmCustomTsy::GetPhonebookCacheStatus"); |
6499 TFLOGSTRING("TSY: CMmCustomTsy::GetPhonebookCacheStatus"); |
6505 RMmCustomAPI::TPndCacheStatus ret( RMmCustomAPI::ECacheNotUsed ); |
6500 RMmCustomAPI::TPndCacheStatus ret( RMmCustomAPI::ECacheNotUsed ); |
6506 |
6501 |
6507 switch ( aPhoneBookType ) |
6502 switch ( aPhoneBookType ) |
6508 { |
6503 { |
6509 case KADNPhoneBook: |
6504 case KADNPhoneBook: |
6529 // --------------------------------------------------------------------------- |
6524 // --------------------------------------------------------------------------- |
6530 // |
6525 // |
6531 void CMmCustomTsy::ReqCompleted( const TTsyReqHandle aTsyReqHandle, |
6526 void CMmCustomTsy::ReqCompleted( const TTsyReqHandle aTsyReqHandle, |
6532 const TInt aError ) |
6527 const TInt aError ) |
6533 { |
6528 { |
6534 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_REQCOMPLETED_1, "TSY: CMmCustomTsy::ReqCompleted, aTsyReqHandle=%d, aError=%d", aTsyReqHandle, aError ); |
6529 TFLOGSTRING3("TSY: CMmCustomTsy::ReqCompleted, aTsyReqHandle=%d, aError=%d", aTsyReqHandle, aError ); |
6535 |
6530 |
6536 CTelObject::ReqCompleted ( aTsyReqHandle, aError ); |
6531 CTelObject::ReqCompleted ( aTsyReqHandle, aError ); |
6537 } |
6532 } |
6538 |
6533 |
6539 // --------------------------------------------------------------------------- |
6534 // --------------------------------------------------------------------------- |
6545 TInt CMmCustomTsy::GetSystemNetworkBandL( |
6540 TInt CMmCustomTsy::GetSystemNetworkBandL( |
6546 const TTsyReqHandle aTsyReqHandle, |
6541 const TTsyReqHandle aTsyReqHandle, |
6547 RMmCustomAPI::TBandSelection* aSystemNetworkBand, |
6542 RMmCustomAPI::TBandSelection* aSystemNetworkBand, |
6548 RMmCustomAPI::TNetworkModeCaps* aSystemNetworkMode ) |
6543 RMmCustomAPI::TNetworkModeCaps* aSystemNetworkMode ) |
6549 { |
6544 { |
6550 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETSYSTEMNETWORKBANDL_1, "TSY: CMmCustomTsy::GetSystemNetworkBandL"); |
6545 TFLOGSTRING("TSY: CMmCustomTsy::GetSystemNetworkBandL"); |
6551 TTsyReqHandle reqhandle = iTsyReqHandleStore->GetTsyReqHandle( |
6546 TTsyReqHandle reqhandle = iTsyReqHandleStore->GetTsyReqHandle( |
6552 ECustomTsyGetSystemNetworkBand ); |
6547 ECustomTsyGetSystemNetworkBand ); |
6553 |
6548 |
6554 if ( ECustomTsyReqHandleUnknown < reqhandle ) |
6549 if ( ECustomTsyReqHandleUnknown < reqhandle ) |
6555 { |
6550 { |
6591 void CMmCustomTsy::CompleteGetSystemNetworkBand( |
6586 void CMmCustomTsy::CompleteGetSystemNetworkBand( |
6592 RMmCustomAPI::TBandSelection aSystemNetworkBand, |
6587 RMmCustomAPI::TBandSelection aSystemNetworkBand, |
6593 RMmCustomAPI::TNetworkModeCaps aSystemNetworkMode, |
6588 RMmCustomAPI::TNetworkModeCaps aSystemNetworkMode, |
6594 TInt aResult ) |
6589 TInt aResult ) |
6595 { |
6590 { |
6596 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETSYSTEMNETWORKBAND_1, "TSY: CMmCustomTsy::CompleteGetSystemNetworkBand. Result: %d", aResult); |
6591 TFLOGSTRING2("TSY: CMmCustomTsy::CompleteGetSystemNetworkBand. Result: %d", aResult); |
6597 // reset req handle. Returns the deleted req handle |
6592 // reset req handle. Returns the deleted req handle |
6598 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6593 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6599 ECustomTsyGetSystemNetworkBand ); |
6594 ECustomTsyGetSystemNetworkBand ); |
6600 |
6595 |
6601 // check if handle exists |
6596 // check if handle exists |
6624 // --------------------------------------------------------------------------- |
6619 // --------------------------------------------------------------------------- |
6625 // |
6620 // |
6626 TInt CMmCustomTsy::GetSystemNetworkBandCancel( |
6621 TInt CMmCustomTsy::GetSystemNetworkBandCancel( |
6627 const TTsyReqHandle aTsyReqHandle ) |
6622 const TTsyReqHandle aTsyReqHandle ) |
6628 { |
6623 { |
6629 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETSYSTEMNETWORKBANDCANCEL_1, "TSY: CMmCustomTsy::GetSystemNetworkBandCancel"); |
6624 TFLOGSTRING("TSY: CMmCustomTsy::GetSystemNetworkBandCancel"); |
6630 // reset the pointer to client data |
6625 // reset the pointer to client data |
6631 iAvailableSystemNetworkBand = NULL; |
6626 iAvailableSystemNetworkBand = NULL; |
6632 iSystemNetworkModeCaps = NULL; |
6627 iSystemNetworkModeCaps = NULL; |
6633 |
6628 |
6634 // reset the reqhandle |
6629 // reset the reqhandle |
6650 TInt CMmCustomTsy::SetSystemNetworkBandL( |
6645 TInt CMmCustomTsy::SetSystemNetworkBandL( |
6651 const TTsyReqHandle aTsyReqHandle, |
6646 const TTsyReqHandle aTsyReqHandle, |
6652 RMmCustomAPI::TBandSelection* aSystemNetworkBand, |
6647 RMmCustomAPI::TBandSelection* aSystemNetworkBand, |
6653 RMmCustomAPI::TNetworkModeCaps* aSystemNetworkModeCaps ) |
6648 RMmCustomAPI::TNetworkModeCaps* aSystemNetworkModeCaps ) |
6654 { |
6649 { |
6655 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SETSYSTEMNETWORKBANDL_1, "TSY: CMmCustomTsy::SetSystemNetworkBandL"); |
6650 TFLOGSTRING("TSY: CMmCustomTsy::SetSystemNetworkBandL"); |
6656 TTsyReqHandle reqhandle = iTsyReqHandleStore->GetTsyReqHandle( |
6651 TTsyReqHandle reqhandle = iTsyReqHandleStore->GetTsyReqHandle( |
6657 ECustomTsySetSystemNetworkBand ); |
6652 ECustomTsySetSystemNetworkBand ); |
6658 |
6653 |
6659 if ( ECustomTsyReqHandleUnknown < reqhandle ) |
6654 if ( ECustomTsyReqHandleUnknown < reqhandle ) |
6660 { |
6655 { |
6700 // --------------------------------------------------------------------------- |
6695 // --------------------------------------------------------------------------- |
6701 // |
6696 // |
6702 void CMmCustomTsy::CompleteSetSystemNetworkBand( |
6697 void CMmCustomTsy::CompleteSetSystemNetworkBand( |
6703 TInt aResult ) |
6698 TInt aResult ) |
6704 { |
6699 { |
6705 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESETSYSTEMNETWORKBAND_1, "TSY: CMmCustomTsy::CompleteSetSystemNetworkBand"); |
6700 TFLOGSTRING("TSY: CMmCustomTsy::CompleteSetSystemNetworkBand"); |
6706 // reset req handle. Returns the deleted req handle |
6701 // reset req handle. Returns the deleted req handle |
6707 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6702 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6708 ECustomTsySetSystemNetworkBand ); |
6703 ECustomTsySetSystemNetworkBand ); |
6709 |
6704 |
6710 // check if handle exists |
6705 // check if handle exists |
6721 // (other items were commented in a header). |
6716 // (other items were commented in a header). |
6722 // --------------------------------------------------------------------------- |
6717 // --------------------------------------------------------------------------- |
6723 // |
6718 // |
6724 void CMmCustomTsy::SetIccCfBootUpFlag( TBool aBootUp ) |
6719 void CMmCustomTsy::SetIccCfBootUpFlag( TBool aBootUp ) |
6725 { |
6720 { |
6726 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_SETICCCFBOOTUPFLAG_1, "TSY: CMmCustomTsy::SetIccCfBootUpFlag, aBootUp=%d", aBootUp ); |
6721 TFLOGSTRING2("TSY: CMmCustomTsy::SetIccCfBootUpFlag, aBootUp=%d", aBootUp ); |
6727 |
6722 |
6728 iGetIccCfStatusBootUp = aBootUp; |
6723 iGetIccCfStatusBootUp = aBootUp; |
6729 } |
6724 } |
6730 |
6725 |
6731 // --------------------------------------------------------------------------- |
6726 // --------------------------------------------------------------------------- |
6735 // |
6730 // |
6736 TInt CMmCustomTsy::GetUSIMServiceSupportL( |
6731 TInt CMmCustomTsy::GetUSIMServiceSupportL( |
6737 const TTsyReqHandle aTsyReqHandle, |
6732 const TTsyReqHandle aTsyReqHandle, |
6738 RMmCustomAPI::TAppSupport* aAppSupport ) |
6733 RMmCustomAPI::TAppSupport* aAppSupport ) |
6739 { |
6734 { |
6740 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETUSIMSERVICESUPPORTL_1, "TSY: CMmCustomTsy::GetUSIMServiceSupportL"); |
6735 TFLOGSTRING("TSY: CMmCustomTsy::GetUSIMServiceSupportL"); |
6741 |
6736 |
6742 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
6737 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
6743 ECustomTsyGetUSIMServiceSupport ); |
6738 ECustomTsyGetUSIMServiceSupport ); |
6744 |
6739 |
6745 if ( ECustomTsyReqHandleUnknown != reqHandle ) |
6740 if ( ECustomTsyReqHandleUnknown != reqHandle ) |
6782 // |
6777 // |
6783 void CMmCustomTsy::CompleteGetUSIMServiceSupport( |
6778 void CMmCustomTsy::CompleteGetUSIMServiceSupport( |
6784 CMmDataPackage* aDataPackage, |
6779 CMmDataPackage* aDataPackage, |
6785 TInt aErrorCode ) |
6780 TInt aErrorCode ) |
6786 { |
6781 { |
6787 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETUSIMSERVICESUPPORT_1, "TSY: CMmCustomTsy::CompleteGetUSIMServiceSupport"); |
6782 TFLOGSTRING("TSY: CMmCustomTsy::CompleteGetUSIMServiceSupport"); |
6788 |
6783 |
6789 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6784 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6790 ECustomTsyGetUSIMServiceSupport ); |
6785 ECustomTsyGetUSIMServiceSupport ); |
6791 |
6786 |
6792 if( ECustomTsyReqHandleUnknown != reqHandle ) |
6787 if( ECustomTsyReqHandleUnknown != reqHandle ) |
6819 // (other items were commented in a header). |
6814 // (other items were commented in a header). |
6820 // --------------------------------------------------------------------------- |
6815 // --------------------------------------------------------------------------- |
6821 // |
6816 // |
6822 TInt CMmCustomTsy::GetUSIMServiceSupportCancel() |
6817 TInt CMmCustomTsy::GetUSIMServiceSupportCancel() |
6823 { |
6818 { |
6824 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETUSIMSERVICESUPPORTCANCEL_1, "TSY: CMmCustomTsy::GetUSIMServiceSupportCancel"); |
6819 TFLOGSTRING("TSY: CMmCustomTsy::GetUSIMServiceSupportCancel"); |
6825 |
6820 |
6826 // reset the reqhandle |
6821 // reset the reqhandle |
6827 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6822 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6828 ECustomTsyGetUSIMServiceSupport ); |
6823 ECustomTsyGetUSIMServiceSupport ); |
6829 |
6824 |
6845 // --------------------------------------------------------------------------- |
6840 // --------------------------------------------------------------------------- |
6846 // |
6841 // |
6847 TInt CMmCustomTsy::NotifyRemoteAlertingToneStatusChange( |
6842 TInt CMmCustomTsy::NotifyRemoteAlertingToneStatusChange( |
6848 RMmCustomAPI::TRemoteAlertingToneStatus* aToneStatus ) |
6843 RMmCustomAPI::TRemoteAlertingToneStatus* aToneStatus ) |
6849 { |
6844 { |
6850 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_NOTIFYREMOTEALERTINGTONESTATUSCHANGE_1, "TSY: CMmCustomTsy::NotifyRemoteAlertingToneStatusChange"); |
6845 TFLOGSTRING("TSY: CMmCustomTsy::NotifyRemoteAlertingToneStatusChange"); |
6851 |
6846 |
6852 // save pointer to client data |
6847 // save pointer to client data |
6853 iToneStatus = aToneStatus; |
6848 iToneStatus = aToneStatus; |
6854 |
6849 |
6855 // save handle type |
6850 // save handle type |
6866 // |
6861 // |
6867 void CMmCustomTsy::CompleteNotifyRemoteAlertingToneStatusChange( |
6862 void CMmCustomTsy::CompleteNotifyRemoteAlertingToneStatusChange( |
6868 RMmCustomAPI::TRemoteAlertingToneStatus aToneStatus, |
6863 RMmCustomAPI::TRemoteAlertingToneStatus aToneStatus, |
6869 TInt aErrorCode ) |
6864 TInt aErrorCode ) |
6870 { |
6865 { |
6871 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYREMOTEALERTINGTONESTATUSCHANGE_1, "TSY: CMmCustomTsy::CompleteNotifyRemoteAlertingToneStatusChange"); |
6866 TFLOGSTRING("TSY: CMmCustomTsy::CompleteNotifyRemoteAlertingToneStatusChange"); |
6872 |
6867 |
6873 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6868 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6874 ECustomTsyNotifyRemoteAlertingToneStatusChange ); |
6869 ECustomTsyNotifyRemoteAlertingToneStatusChange ); |
6875 |
6870 |
6876 // check if request was called |
6871 // check if request was called |