branch | RCL_3 |
changeset 65 | 630d2f34d719 |
parent 0 | 3553901f7fa8 |
child 66 | 07a122eea281 |
child 73 | 70d75957b98f |
61:17af172ffa5f | 65:630d2f34d719 |
---|---|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-2010 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 "cmmsupplservtsyTraces.h" |
|
23 #endif |
|
24 |
|
19 #include "cmmsupplservtsy.h" |
25 #include "cmmsupplservtsy.h" |
20 #include <ctsy/tflogger.h> |
|
21 |
26 |
22 // include internal Tsy classes |
27 // include internal Tsy classes |
23 #include "cmmphonetsy.h" |
28 #include "cmmphonetsy.h" |
24 #include "cmmtsyreqhandlestore.h" |
29 #include "cmmtsyreqhandlestore.h" |
25 #include <ctsy/pluginapi/cmmdatapackage.h> |
30 #include <ctsy/pluginapi/cmmdatapackage.h> |
705 // Copy the size of the streamed list to client |
710 // Copy the size of the streamed list to client |
706 *iRetCFStatusSize = iCFList->Size(); |
711 *iRetCFStatusSize = iCFList->Size(); |
707 } |
712 } |
708 else |
713 else |
709 { |
714 { |
710 TFLOGSTRING("TSY: CMmSupplServTsy::CompleteGetCallForwardingStatusPhase1L: No response received."); |
715 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETEGETCALLFORWARDINGSTATUSPHASE1L_1, "TSY: CMmSupplServTsy::CompleteGetCallForwardingStatusPhase1L: No response received."); |
711 aErrorCode = KErrNotFound; |
716 aErrorCode = KErrNotFound; |
712 } |
717 } |
713 } |
718 } |
714 |
719 |
715 iRetCFStatusSize = NULL; |
720 iRetCFStatusSize = NULL; |
885 CMmPhoneTsy::EMultimodePhoneSetCallForwardingStatus ); |
890 CMmPhoneTsy::EMultimodePhoneSetCallForwardingStatus ); |
886 |
891 |
887 if ( !cancelSetCallForwardingStatus ) |
892 if ( !cancelSetCallForwardingStatus ) |
888 { |
893 { |
889 // Cancellation called although request is not going on |
894 // Cancellation called although request is not going on |
890 TFLOGSTRING("TSY: CMmSupplServTsy::SetCallForwardingStatusCancel - KErrServerBusy"); |
895 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_SETCALLFORWARDINGSTATUSCANCEL_1, "TSY: CMmSupplServTsy::SetCallForwardingStatusCancel - KErrServerBusy"); |
891 iMmPhone->ReqCompleted( aTsyReqHandle, KErrServerBusy ); |
896 iMmPhone->ReqCompleted( aTsyReqHandle, KErrServerBusy ); |
892 } |
897 } |
893 else |
898 else |
894 { |
899 { |
895 iMmPhone->ReqCompleted( aTsyReqHandle, KErrCancel ); |
900 iMmPhone->ReqCompleted( aTsyReqHandle, KErrCancel ); |
1120 // Copy the size of the streamed list to client |
1125 // Copy the size of the streamed list to client |
1121 *iRetCBStatusSize = iCBList->Size(); |
1126 *iRetCBStatusSize = iCBList->Size(); |
1122 } |
1127 } |
1123 else |
1128 else |
1124 { |
1129 { |
1125 TFLOGSTRING("TSY: CMmSupplServTsy::CompleteGetCallBarringStatusPhase1L: No response received."); |
1130 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETEGETCALLBARRINGSTATUSPHASE1L_1, "TSY: CMmSupplServTsy::CompleteGetCallBarringStatusPhase1L: No response received."); |
1126 aErrorCode = KErrNotFound; |
1131 aErrorCode = KErrNotFound; |
1127 } |
1132 } |
1128 } |
1133 } |
1129 |
1134 |
1130 iRetCBStatusSize = NULL; |
1135 iRetCBStatusSize = NULL; |
1240 if ( !cancelSetCallBarringStatus ) |
1245 if ( !cancelSetCallBarringStatus ) |
1241 { |
1246 { |
1242 //The request is already in processing because of previous request |
1247 //The request is already in processing because of previous request |
1243 //Complete request with status value informing the client about |
1248 //Complete request with status value informing the client about |
1244 //the situation. |
1249 //the situation. |
1245 TFLOGSTRING("TSY: CMmPhoneTsy::SetCallBarringStatusCancel - KErrServerBusy"); |
1250 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_SETCALLBARRINGSTATUSCANCEL_1, "TSY: CMmPhoneTsy::SetCallBarringStatusCancel - KErrServerBusy"); |
1246 iMmPhone->ReqCompleted( aTsyReqHandle, KErrServerBusy ); |
1251 iMmPhone->ReqCompleted( aTsyReqHandle, KErrServerBusy ); |
1247 } |
1252 } |
1248 else |
1253 else |
1249 { |
1254 { |
1250 iMmPhone->ReqCompleted( aTsyReqHandle, KErrCancel ); |
1255 iMmPhone->ReqCompleted( aTsyReqHandle, KErrCancel ); |
1341 reinterpret_cast<TPckg<RMobilePhone::TMobilePhonePasswordChangeV2>*> |
1346 reinterpret_cast<TPckg<RMobilePhone::TMobilePhonePasswordChangeV2>*> |
1342 ( aPasswordPckg ); |
1347 ( aPasswordPckg ); |
1343 RMobilePhone::TMobilePhonePasswordChangeV2& ssPassword = |
1348 RMobilePhone::TMobilePhonePasswordChangeV2& ssPassword = |
1344 ( *ssPasswordPckg )(); |
1349 ( *ssPasswordPckg )(); |
1345 |
1350 |
1346 TFLOGSTRING2("TSY: CMmSupplServTsy::SetSSPassword - SS service: %d", |
1351 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_SETSSPASSWORDL_1, "TSY: CMmSupplServTsy::SetSSPassword - SS service: %d", *aSsService ); |
1347 *aSsService ); |
1352 |
1348 |
1353 OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_SETSSPASSWORDL_2, "TSY: CMmSupplServTsy::SetSSPassword - Old PW: %S", ssPassword.iOldPassword ); |
1349 TFLOGSTRING2("TSY: CMmSupplServTsy::SetSSPassword - Old PW: %S", |
1354 |
1350 &ssPassword.iOldPassword ); |
1355 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_SETSSPASSWORDL_3, "TSY: CMmSupplServTsy::SetSSPassword - New PW: %S, Verify PW: %S", ssPassword.iNewPassword, ssPassword.iVerifiedPassword ); |
1351 |
|
1352 TFLOGSTRING3("TSY: CMmSupplServTsy::SetSSPassword - New PW: %S, Verify PW: %S", |
|
1353 &ssPassword.iNewPassword, &ssPassword.iVerifiedPassword ); |
|
1354 |
1356 |
1355 // Packed parameters: TMobilePhonePasswordChangeV2 and TUint16 |
1357 // Packed parameters: TMobilePhonePasswordChangeV2 and TUint16 |
1356 TUint16 ssServiceUnsigned = static_cast<TUint16>( *aSsService ); |
1358 TUint16 ssServiceUnsigned = static_cast<TUint16>( *aSsService ); |
1357 CMmDataPackage dataPackage; |
1359 CMmDataPackage dataPackage; |
1358 dataPackage.PackData( &ssPassword, &ssServiceUnsigned ); |
1360 dataPackage.PackData( &ssPassword, &ssServiceUnsigned ); |
1411 if ( !cancelSetSSPasswordHandle ) |
1413 if ( !cancelSetSSPasswordHandle ) |
1412 { |
1414 { |
1413 //The request is already in processing because of previous request |
1415 //The request is already in processing because of previous request |
1414 //Complete request with status value informing the client about |
1416 //Complete request with status value informing the client about |
1415 //the situation. |
1417 //the situation. |
1416 TFLOGSTRING("TSY: CMmSupplServTsy::SetSSPasswordCancel - KErrServerBusy"); |
1418 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_SETSSPASSWORDCANCEL_1, "TSY: CMmSupplServTsy::SetSSPasswordCancel - KErrServerBusy"); |
1417 iMmPhone->ReqCompleted( aTsyReqHandle, KErrServerBusy ); |
1419 iMmPhone->ReqCompleted( aTsyReqHandle, KErrServerBusy ); |
1418 } |
1420 } |
1419 else |
1421 else |
1420 { |
1422 { |
1421 iMmPhone->ReqCompleted( aTsyReqHandle, KErrCancel ); |
1423 iMmPhone->ReqCompleted( aTsyReqHandle, KErrCancel ); |
1573 // Copy the size of the streamed list to client |
1575 // Copy the size of the streamed list to client |
1574 *iRetCWStatusSize = iCWList->Size(); |
1576 *iRetCWStatusSize = iCWList->Size(); |
1575 } |
1577 } |
1576 else |
1578 else |
1577 { |
1579 { |
1578 TFLOGSTRING("TSY: CMmSupplServTsy::CompleteGetCallWaitingStatusPhase1L: No response received."); |
1580 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETEGETCALLWAITINGSTATUSPHASE1L_1, "TSY: CMmSupplServTsy::CompleteGetCallWaitingStatusPhase1L: No response received."); |
1579 aErrorCode = KErrNotFound; |
1581 aErrorCode = KErrNotFound; |
1580 } |
1582 } |
1581 } |
1583 } |
1582 |
1584 |
1583 iRetCWStatusSize = NULL; |
1585 iRetCWStatusSize = NULL; |
1672 if ( !cancelSetCallWaitingStatusHandle ) |
1674 if ( !cancelSetCallWaitingStatusHandle ) |
1673 { |
1675 { |
1674 //The request is already in processing because of previous request |
1676 //The request is already in processing because of previous request |
1675 //Complete request with status value informing the client about |
1677 //Complete request with status value informing the client about |
1676 //the situation. |
1678 //the situation. |
1677 TFLOGSTRING("TSY: CMmSupplServTsy::SetCallWaitingStatusCancel - KErrServerBusy"); |
1679 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_SETCALLWAITINGSTATUSCANCEL_1, "TSY: CMmSupplServTsy::SetCallWaitingStatusCancel - KErrServerBusy"); |
1678 iMmPhone->ReqCompleted( aTsyReqHandle, KErrServerBusy ); |
1680 iMmPhone->ReqCompleted( aTsyReqHandle, KErrServerBusy ); |
1679 } |
1681 } |
1680 else |
1682 else |
1681 { |
1683 { |
1682 iMmPhone->ReqCompleted( aTsyReqHandle, KErrCancel ); |
1684 iMmPhone->ReqCompleted( aTsyReqHandle, KErrCancel ); |
1869 TInt CMmSupplServTsy::SendNetworkServiceRequestL( |
1871 TInt CMmSupplServTsy::SendNetworkServiceRequestL( |
1870 const TTsyReqHandle aTsyReqHandle, |
1872 const TTsyReqHandle aTsyReqHandle, |
1871 const TDesC* aServiceString ) |
1873 const TDesC* aServiceString ) |
1872 { |
1874 { |
1873 TInt ret = KErrNone; |
1875 TInt ret = KErrNone; |
1874 TFLOGSTRING2("TSY: CMmSupplServTsy::SendNetworkServiceRequestL: iSsNoFdnCheckFlag: %d", iSsNoFdnCheckFlag); |
1876 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_SENDNETWORKSERVICEREQUESTL_1, "TSY: CMmSupplServTsy::SendNetworkServiceRequestL: iSsNoFdnCheckFlag: %d", iSsNoFdnCheckFlag); |
1875 if ( iSsTransactionOngoing ) |
1877 if ( iSsTransactionOngoing ) |
1876 { |
1878 { |
1877 ret = KErrServerBusy; |
1879 ret = KErrServerBusy; |
1878 } |
1880 } |
1879 else |
1881 else |
1953 // |
1955 // |
1954 TInt CMmSupplServTsy::GetIccMessageWaitingIndicatorsL( |
1956 TInt CMmSupplServTsy::GetIccMessageWaitingIndicatorsL( |
1955 const TTsyReqHandle aTsyReqHandle, |
1957 const TTsyReqHandle aTsyReqHandle, |
1956 RMobilePhone::TMobilePhoneMessageWaitingV1* aMessageWaiting ) |
1958 RMobilePhone::TMobilePhoneMessageWaitingV1* aMessageWaiting ) |
1957 { |
1959 { |
1958 TFLOGSTRING("TSY: CMmSupplServTsy::GetIccMessageWaitingIndicatorsL"); |
1960 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_GETICCMESSAGEWAITINGINDICATORSL_1, "TSY: CMmSupplServTsy::GetIccMessageWaitingIndicatorsL"); |
1959 |
1961 |
1960 // check if parameter is correct type of class |
1962 // check if parameter is correct type of class |
1961 if ( KETelExtMultimodeV1 != aMessageWaiting->ExtensionId() ) |
1963 if ( KETelExtMultimodeV1 != aMessageWaiting->ExtensionId() ) |
1962 { |
1964 { |
1963 // complete request |
1965 // complete request |
1974 iMmPhone->iTsyReqHandleStore->GetTsyReqHandle( |
1976 iMmPhone->iTsyReqHandleStore->GetTsyReqHandle( |
1975 CMmPhoneTsy::EMultimodePhoneSetIccMessageWaitingIndicators ) ) ) |
1977 CMmPhoneTsy::EMultimodePhoneSetIccMessageWaitingIndicators ) ) ) |
1976 { |
1978 { |
1977 TInt ret( KErrNone ); |
1979 TInt ret( KErrNone ); |
1978 |
1980 |
1979 TFLOGSTRING2("TSY: CMmSupplServTsy::GetIccMessageWaitingIndicatorsL, MWIS supported:%d", iMessageWaitingSupportedByIcc ); |
1981 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_GETICCMESSAGEWAITINGINDICATORSL_2, "TSY: CMmSupplServTsy::GetIccMessageWaitingIndicatorsL, MWIS supported:%d", iMessageWaitingSupportedByIcc ); |
1980 |
1982 |
1981 if (iMmPhone->IsSIMReady()) |
1983 if (iMmPhone->IsSIMReady()) |
1982 { |
1984 { |
1983 if ( iMessageWaitingSupportedByIcc ) |
1985 if ( iMessageWaitingSupportedByIcc ) |
1984 { |
1986 { |
2008 { |
2010 { |
2009 // read the values from the central repository |
2011 // read the values from the central repository |
2010 ret = ReadIccMessageWaitingIndicatorsFromCentRep( |
2012 ret = ReadIccMessageWaitingIndicatorsFromCentRep( |
2011 iMessageWaiting ); |
2013 iMessageWaiting ); |
2012 |
2014 |
2013 TFLOGSTRING2("TSY: CMmSupplServTsy::GetIccMessageWaitingIndicatorsL, Error during the reading from CentRep:%d", ret); |
2015 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_GETICCMESSAGEWAITINGINDICATORSL_3, "TSY: CMmSupplServTsy::GetIccMessageWaitingIndicatorsL, Error during the reading from CentRep:%d", ret); |
2014 |
2016 |
2015 if ( KErrNone == ret ) |
2017 if ( KErrNone == ret ) |
2016 { |
2018 { |
2017 // copy default values to the client side |
2019 // copy default values to the client side |
2018 *aMessageWaiting = iMessageWaiting; |
2020 *aMessageWaiting = iMessageWaiting; |
2030 iMwisInfoRequests.AppendL(req); |
2032 iMwisInfoRequests.AppendL(req); |
2031 } |
2033 } |
2032 } |
2034 } |
2033 else |
2035 else |
2034 { |
2036 { |
2035 TFLOGSTRING("TSY: CMmSupplServTsy::GetIccMessageWaitingIndicatorsL - save reqHandle to queue"); |
2037 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_GETICCMESSAGEWAITINGINDICATORSL_4, "TSY: CMmSupplServTsy::GetIccMessageWaitingIndicatorsL - save reqHandle to queue"); |
2036 // Save reqHandle to queue for completion |
2038 // Save reqHandle to queue for completion |
2037 TMwisInfoRequest* req = new (ELeave) TMwisInfoRequest(); |
2039 TMwisInfoRequest* req = new (ELeave) TMwisInfoRequest(); |
2038 req->iReqHandle = aTsyReqHandle; |
2040 req->iReqHandle = aTsyReqHandle; |
2039 req->iMwisInfo = aMessageWaiting; |
2041 req->iMwisInfo = aMessageWaiting; |
2040 iMwisInfoRequests.AppendL(req); |
2042 iMwisInfoRequests.AppendL(req); |
2053 // |
2055 // |
2054 void CMmSupplServTsy::CompleteGetIccMessageWaitingIndicators( |
2056 void CMmSupplServTsy::CompleteGetIccMessageWaitingIndicators( |
2055 RMobilePhone::TMobilePhoneMessageWaitingV1* aMessageWaiting, |
2057 RMobilePhone::TMobilePhoneMessageWaitingV1* aMessageWaiting, |
2056 TInt aErrorCode ) |
2058 TInt aErrorCode ) |
2057 { |
2059 { |
2058 TFLOGSTRING3("TSY: CMmSupplServTsy::CompleteGetIccMessageWaitingIndicators, bootup=%d, Error: %d", iGetIccSupportAtBoot, aErrorCode ); |
2060 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETEGETICCMESSAGEWAITINGINDICATORS_1, "TSY: CMmSupplServTsy::CompleteGetIccMessageWaitingIndicators, bootup=%d, Error: %d", iGetIccSupportAtBoot, aErrorCode ); |
2059 |
2061 |
2060 // reset req handle. Returns the deleted req handle |
2062 // reset req handle. Returns the deleted req handle |
2061 TTsyReqHandle reqHandle = iMmPhone->iTsyReqHandleStore->ResetTsyReqHandle( |
2063 TTsyReqHandle reqHandle = iMmPhone->iTsyReqHandleStore->ResetTsyReqHandle( |
2062 CMmPhoneTsy::EMultimodePhoneGetIccMessageWaitingIndicators ); |
2064 CMmPhoneTsy::EMultimodePhoneGetIccMessageWaitingIndicators ); |
2063 |
2065 |
2081 aErrorCode = KErrNone; |
2083 aErrorCode = KErrNone; |
2082 } |
2084 } |
2083 } |
2085 } |
2084 else |
2086 else |
2085 { |
2087 { |
2086 TFLOGSTRING("TSY: CMmSupplServTsy::CompleteGetIccMessageWaitingIndicators, NOT supported by SIM" ); |
2088 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETEGETICCMESSAGEWAITINGINDICATORS_2, "TSY: CMmSupplServTsy::CompleteGetIccMessageWaitingIndicators, NOT supported by SIM" ); |
2087 SetIccSupportForMWIS( EFalse ); |
2089 SetIccSupportForMWIS( EFalse ); |
2088 |
2090 |
2089 // read the data from the Central Repository |
2091 // read the data from the Central Repository |
2090 aErrorCode = ReadIccMessageWaitingIndicatorsFromCentRep( |
2092 aErrorCode = ReadIccMessageWaitingIndicatorsFromCentRep( |
2091 iMessageWaiting ); |
2093 iMessageWaiting ); |
2092 } |
2094 } |
2093 |
2095 |
2094 // Go through the request queue and complete same information to all reguests |
2096 // Go through the request queue and complete same information to all reguests |
2095 for ( TInt i = 0; i < iMwisInfoRequests.Count(); i++ ) |
2097 for ( TInt i = 0; i < iMwisInfoRequests.Count(); i++ ) |
2096 { |
2098 { |
2097 TFLOGSTRING("TSY: CMmSupplServTsy::CompleteGetIccMessageWaitingIndicators, Going throw request queue" ); |
2099 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETEGETICCMESSAGEWAITINGINDICATORS_3, "TSY: CMmSupplServTsy::CompleteGetIccMessageWaitingIndicators, Going throw request queue" ); |
2098 TMwisInfoRequest* req = iMwisInfoRequests[ i ]; |
2100 TMwisInfoRequest* req = iMwisInfoRequests[ i ]; |
2099 //set value in client side |
2101 //set value in client side |
2100 *(req->iMwisInfo) = iMessageWaiting; |
2102 *(req->iMwisInfo) = iMessageWaiting; |
2101 // Complete the client request |
2103 // Complete the client request |
2102 iMmPhone->ReqCompleted( req->iReqHandle, aErrorCode ); |
2104 iMmPhone->ReqCompleted( req->iReqHandle, aErrorCode ); |
2122 SetIccSupportForMWIS( ETrue ); |
2124 SetIccSupportForMWIS( ETrue ); |
2123 // update only display status information |
2125 // update only display status information |
2124 iMessageWaiting.iDisplayStatus = aMessageWaiting->iDisplayStatus; |
2126 iMessageWaiting.iDisplayStatus = aMessageWaiting->iDisplayStatus; |
2125 aErrorCode = iMwisCentRep->Set( KCtsyMessageWaitingDisplayStatus, |
2127 aErrorCode = iMwisCentRep->Set( KCtsyMessageWaitingDisplayStatus, |
2126 aMessageWaiting->iDisplayStatus ); |
2128 aMessageWaiting->iDisplayStatus ); |
2127 TFLOGSTRING3("TSY: CMmSupplServTsy::CompleteGetIccMessageWaitingIndicators, CPHS bootup, status=%d, error=%d ", aMessageWaiting->iDisplayStatus, aErrorCode ); |
2129 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETEGETICCMESSAGEWAITINGINDICATORS_4, "TSY: CMmSupplServTsy::CompleteGetIccMessageWaitingIndicators, CPHS bootup, status=%d, error=%d ", aMessageWaiting->iDisplayStatus, aErrorCode ); |
2128 } |
2130 } |
2129 else |
2131 else |
2130 { |
2132 { |
2131 SetIccSupportForMWIS( EFalse ); |
2133 SetIccSupportForMWIS( EFalse ); |
2132 } |
2134 } |
2141 // --------------------------------------------------------------------------- |
2143 // --------------------------------------------------------------------------- |
2142 // |
2144 // |
2143 TInt CMmSupplServTsy::GetIccMessageWaitingIndicatorsCancel( |
2145 TInt CMmSupplServTsy::GetIccMessageWaitingIndicatorsCancel( |
2144 const TTsyReqHandle aTsyReqHandle ) |
2146 const TTsyReqHandle aTsyReqHandle ) |
2145 { |
2147 { |
2146 TFLOGSTRING("TSY: CMmSupplServTsy::GetIccMessageWaitingIndicatorsCancel"); |
2148 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_GETICCMESSAGEWAITINGINDICATORSCANCEL_1, "TSY: CMmSupplServTsy::GetIccMessageWaitingIndicatorsCancel"); |
2147 |
2149 |
2148 //reset the req handle if only one req remains |
2150 //reset the req handle if only one req remains |
2149 if( 1 == iMwisInfoRequests.Count() ) |
2151 if( 1 == iMwisInfoRequests.Count() ) |
2150 { |
2152 { |
2151 TFLOGSTRING("TSY: CMmSupplServTsy::GetIccMessageWaitingIndicatorsCancel - one req"); |
2153 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_GETICCMESSAGEWAITINGINDICATORSCANCEL_2, "TSY: CMmSupplServTsy::GetIccMessageWaitingIndicatorsCancel - one req"); |
2152 TTsyReqHandle reqHandle = iMmPhone-> |
2154 TTsyReqHandle reqHandle = iMmPhone-> |
2153 iTsyReqHandleStore->ResetTsyReqHandle( |
2155 iTsyReqHandleStore->ResetTsyReqHandle( |
2154 CMmPhoneTsy::EMultimodePhoneGetIccMessageWaitingIndicators); |
2156 CMmPhoneTsy::EMultimodePhoneGetIccMessageWaitingIndicators); |
2155 } |
2157 } |
2156 // qo through array if several requests and find correct reqhandle to cancel |
2158 // qo through array if several requests and find correct reqhandle to cancel |
2157 for ( TInt i = 0; i < iMwisInfoRequests.Count(); i++ ) |
2159 for ( TInt i = 0; i < iMwisInfoRequests.Count(); i++ ) |
2158 { |
2160 { |
2159 TFLOGSTRING("TSY: CMmSupplServTsy::GetIccMessageWaitingIndicatorsCancel - queued requests"); |
2161 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_GETICCMESSAGEWAITINGINDICATORSCANCEL_3, "TSY: CMmSupplServTsy::GetIccMessageWaitingIndicatorsCancel - queued requests"); |
2160 TMwisInfoRequest* req = iMwisInfoRequests[ i ]; |
2162 TMwisInfoRequest* req = iMwisInfoRequests[ i ]; |
2161 if( aTsyReqHandle == req->iReqHandle ) |
2163 if( aTsyReqHandle == req->iReqHandle ) |
2162 { |
2164 { |
2163 iMmPhone->ReqCompleted( req->iReqHandle, KErrCancel ); |
2165 iMmPhone->ReqCompleted( req->iReqHandle, KErrCancel ); |
2164 delete iMwisInfoRequests[ i ]; |
2166 delete iMwisInfoRequests[ i ]; |
2178 // |
2180 // |
2179 TInt CMmSupplServTsy::SetIccMessageWaitingIndicatorsL( |
2181 TInt CMmSupplServTsy::SetIccMessageWaitingIndicatorsL( |
2180 const TTsyReqHandle aTsyReqHandle, |
2182 const TTsyReqHandle aTsyReqHandle, |
2181 TDes8* aParams ) |
2183 TDes8* aParams ) |
2182 { |
2184 { |
2183 TFLOGSTRING("TSY: CMmSupplServTsy::SetIccMessageWaitingIndicatorsL"); |
2185 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_SETICCMESSAGEWAITINGINDICATORSL_1, "TSY: CMmSupplServTsy::SetIccMessageWaitingIndicatorsL"); |
2184 |
2186 |
2185 TInt ret( KErrNone ); |
2187 TInt ret( KErrNone ); |
2186 |
2188 |
2187 if ( sizeof( RMobilePhone::TMobilePhoneMessageWaitingV1 ) > aParams->MaxLength() ) |
2189 if ( sizeof( RMobilePhone::TMobilePhoneMessageWaitingV1 ) > aParams->MaxLength() ) |
2188 { |
2190 { |
2189 TFLOGSTRING ("TSY: CMmSupplServTsy::SetIccMessageWaitingIndicatorsL bad size argument"); |
2191 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_SETICCMESSAGEWAITINGINDICATORSL_2, "TSY: CMmSupplServTsy::SetIccMessageWaitingIndicatorsL bad size argument"); |
2190 // Complete the request with appropiate error |
2192 // Complete the request with appropiate error |
2191 ret = KErrArgument; |
2193 ret = KErrArgument; |
2192 } |
2194 } |
2193 |
2195 |
2194 // check if handle is not used for Set or Get |
2196 // check if handle is not used for Set or Get |
2198 ( CMmPhoneTsy::EMultimodePhoneReqHandleUnknown == iMmPhone-> |
2200 ( CMmPhoneTsy::EMultimodePhoneReqHandleUnknown == iMmPhone-> |
2199 iTsyReqHandleStore->GetTsyReqHandle( |
2201 iTsyReqHandleStore->GetTsyReqHandle( |
2200 CMmPhoneTsy::EMultimodePhoneGetIccMessageWaitingIndicators ) ) ) |
2202 CMmPhoneTsy::EMultimodePhoneGetIccMessageWaitingIndicators ) ) ) |
2201 { |
2203 { |
2202 |
2204 |
2203 TFLOGSTRING2("TSY: CMmSupplServTsy::SetIccMessageWaitingIndicatorsL, MWIS supported:%d",iMessageWaitingSupportedByIcc ); |
2205 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_SETICCMESSAGEWAITINGINDICATORSL_3, "TSY: CMmSupplServTsy::SetIccMessageWaitingIndicatorsL, MWIS supported:%d",iMessageWaitingSupportedByIcc ); |
2204 |
2206 |
2205 RMobilePhone::TMobilePhoneMessageWaitingV1Pckg* paramsPckgV1 = |
2207 RMobilePhone::TMobilePhoneMessageWaitingV1Pckg* paramsPckgV1 = |
2206 reinterpret_cast<RMobilePhone::TMobilePhoneMessageWaitingV1Pckg*>( aParams ); |
2208 reinterpret_cast<RMobilePhone::TMobilePhoneMessageWaitingV1Pckg*>( aParams ); |
2207 RMobilePhone::TMobilePhoneMessageWaitingV1& messageWaiting = ( *paramsPckgV1 )(); |
2209 RMobilePhone::TMobilePhoneMessageWaitingV1& messageWaiting = ( *paramsPckgV1 )(); |
2208 |
2210 |
2256 // --------------------------------------------------------------------------- |
2258 // --------------------------------------------------------------------------- |
2257 // |
2259 // |
2258 void CMmSupplServTsy::CompleteSetIccMessageWaitingIndicators( |
2260 void CMmSupplServTsy::CompleteSetIccMessageWaitingIndicators( |
2259 TInt aErrorCode ) |
2261 TInt aErrorCode ) |
2260 { |
2262 { |
2261 TFLOGSTRING2("TSY: CMmSupplServTsy::CompleteSetIccMessageWaitingIndicators, Error: %d", aErrorCode ); |
2263 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETESETICCMESSAGEWAITINGINDICATORS_1, "TSY: CMmSupplServTsy::CompleteSetIccMessageWaitingIndicators, Error: %d", aErrorCode ); |
2262 |
2264 |
2263 // reset req handle. Returns the deleted req handle |
2265 // reset req handle. Returns the deleted req handle |
2264 TTsyReqHandle reqHandle = iMmPhone->iTsyReqHandleStore->ResetTsyReqHandle( |
2266 TTsyReqHandle reqHandle = iMmPhone->iTsyReqHandleStore->ResetTsyReqHandle( |
2265 CMmPhoneTsy::EMultimodePhoneSetIccMessageWaitingIndicators ); |
2267 CMmPhoneTsy::EMultimodePhoneSetIccMessageWaitingIndicators ); |
2266 |
2268 |
2280 CompleteNotifyIccMessageWaitingIndicatorChange( |
2282 CompleteNotifyIccMessageWaitingIndicatorChange( |
2281 iRetSetMessageWaiting, aErrorCode ); |
2283 iRetSetMessageWaiting, aErrorCode ); |
2282 } |
2284 } |
2283 else |
2285 else |
2284 { |
2286 { |
2285 TFLOGSTRING("TSY: CMmSupplServTsy::CompleteSetIccMessageWaitingIndicators, not supported by SIM" ); |
2287 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETESETICCMESSAGEWAITINGINDICATORS_2, "TSY: CMmSupplServTsy::CompleteSetIccMessageWaitingIndicators, not supported by SIM" ); |
2286 SetIccSupportForMWIS( EFalse ); |
2288 SetIccSupportForMWIS( EFalse ); |
2287 |
2289 |
2288 // reset error value, return possible cenrep error value |
2290 // reset error value, return possible cenrep error value |
2289 aErrorCode = KErrNone; |
2291 aErrorCode = KErrNone; |
2290 // complete notify; also copy information if changed |
2292 // complete notify; also copy information if changed |
2302 //CTSY receives the request for GetIccMessageWaitingIndicators(). |
2304 //CTSY receives the request for GetIccMessageWaitingIndicators(). |
2303 //In that case the request will be queued in request queue. |
2305 //In that case the request will be queued in request queue. |
2304 // So go through the request queue and complete all the request. |
2306 // So go through the request queue and complete all the request. |
2305 for ( TInt i = 0; i < iMwisInfoRequests.Count(); i++ ) |
2307 for ( TInt i = 0; i < iMwisInfoRequests.Count(); i++ ) |
2306 { |
2308 { |
2307 TFLOGSTRING("TSY: CMmSupplServTsy::CompleteGetIccMessageWaitingIndicators, Going throw request queue" ); |
2309 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETESETICCMESSAGEWAITINGINDICATORS_3, "TSY: CMmSupplServTsy::CompleteGetIccMessageWaitingIndicators, Going throw request queue" ); |
2308 TMwisInfoRequest* req = iMwisInfoRequests[ i ]; |
2310 TMwisInfoRequest* req = iMwisInfoRequests[ i ]; |
2309 //set value in client side |
2311 //set value in client side |
2310 *(req->iMwisInfo) = iMessageWaiting; |
2312 *(req->iMwisInfo) = iMessageWaiting; |
2311 // Complete the client request |
2313 // Complete the client request |
2312 iMmPhone->ReqCompleted( req->iReqHandle, KErrNone ); |
2314 iMmPhone->ReqCompleted( req->iReqHandle, KErrNone ); |
2323 // --------------------------------------------------------------------------- |
2325 // --------------------------------------------------------------------------- |
2324 // |
2326 // |
2325 TInt CMmSupplServTsy::SetIccMessageWaitingIndicatorsCancel( |
2327 TInt CMmSupplServTsy::SetIccMessageWaitingIndicatorsCancel( |
2326 const TTsyReqHandle aTsyReqHandle ) |
2328 const TTsyReqHandle aTsyReqHandle ) |
2327 { |
2329 { |
2328 TFLOGSTRING("TSY: CMmSupplServTsy::SetIccMessageWaitingIndicatorsCancel"); |
2330 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_SETICCMESSAGEWAITINGINDICATORSCANCEL_1, "TSY: CMmSupplServTsy::SetIccMessageWaitingIndicatorsCancel"); |
2329 |
2331 |
2330 // As cancel is called, the client memory address pointed to is no longer |
2332 // As cancel is called, the client memory address pointed to is no longer |
2331 // valid -> NULL it |
2333 // valid -> NULL it |
2332 iRetSetMessageWaiting = NULL; |
2334 iRetSetMessageWaiting = NULL; |
2333 iMmPhone->iTsyReqHandleStore->ResetTsyReqHandle( |
2335 iMmPhone->iTsyReqHandleStore->ResetTsyReqHandle( |
2344 // --------------------------------------------------------------------------- |
2346 // --------------------------------------------------------------------------- |
2345 // |
2347 // |
2346 TInt CMmSupplServTsy::NotifyIccMessageWaitingIndicatorsChange( |
2348 TInt CMmSupplServTsy::NotifyIccMessageWaitingIndicatorsChange( |
2347 RMobilePhone::TMobilePhoneMessageWaitingV1* aMessageWaiting ) |
2349 RMobilePhone::TMobilePhoneMessageWaitingV1* aMessageWaiting ) |
2348 { |
2350 { |
2349 TFLOGSTRING("TSY: CMmSupplServTsy::NotifyIccMessageWaitingIndicatorsChangeL"); |
2351 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_NOTIFYICCMESSAGEWAITINGINDICATORSCHANGE_1, "TSY: CMmSupplServTsy::NotifyIccMessageWaitingIndicatorsChangeL"); |
2350 |
2352 |
2351 TInt ret( KErrNone ); |
2353 TInt ret( KErrNone ); |
2352 |
2354 |
2353 // check if parameter is correct type of class |
2355 // check if parameter is correct type of class |
2354 if ( KETelExtMultimodeV1 == aMessageWaiting->ExtensionId() ) |
2356 if ( KETelExtMultimodeV1 == aMessageWaiting->ExtensionId() ) |
2375 // |
2377 // |
2376 void CMmSupplServTsy::CompleteNotifyIccMessageWaitingIndicatorChange( |
2378 void CMmSupplServTsy::CompleteNotifyIccMessageWaitingIndicatorChange( |
2377 RMobilePhone::TMobilePhoneMessageWaitingV1* aMessageWaiting, |
2379 RMobilePhone::TMobilePhoneMessageWaitingV1* aMessageWaiting, |
2378 TInt& aErrorCode ) |
2380 TInt& aErrorCode ) |
2379 { |
2381 { |
2380 TFLOGSTRING2("TSY: CMmSupplServTsy::CompleteNotifyIccMessageWaitingIndicatorChange, error:%d", aErrorCode ); |
2382 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETENOTIFYICCMESSAGEWAITINGINDICATORCHANGE_1, "TSY: CMmSupplServTsy::CompleteNotifyIccMessageWaitingIndicatorChange, error:%d", aErrorCode ); |
2381 |
2383 |
2382 if ( IsMwisInfoChanged( *aMessageWaiting ) ) |
2384 if ( IsMwisInfoChanged( *aMessageWaiting ) ) |
2383 { |
2385 { |
2384 if ( KErrNone == aErrorCode ) |
2386 if ( KErrNone == aErrorCode ) |
2385 { |
2387 { |
2397 aErrorCode = KErrNone; |
2399 aErrorCode = KErrNone; |
2398 |
2400 |
2399 if ( aMessageWaiting->iDisplayStatus != |
2401 if ( aMessageWaiting->iDisplayStatus != |
2400 iMessageWaiting.iDisplayStatus ) |
2402 iMessageWaiting.iDisplayStatus ) |
2401 { |
2403 { |
2402 TFLOGSTRING2("TSY: CMmSupplServTsy::CompleteNotifyIccMessageWaitingIndicatorChange, CPHS information changed status=%d ", aMessageWaiting->iDisplayStatus); |
2404 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETENOTIFYICCMESSAGEWAITINGINDICATORCHANGE_2, "TSY: CMmSupplServTsy::CompleteNotifyIccMessageWaitingIndicatorChange, CPHS information changed status=%d ", aMessageWaiting->iDisplayStatus); |
2403 // update only CPHS supported information |
2405 // update only CPHS supported information |
2404 iMessageWaiting.iDisplayStatus = |
2406 iMessageWaiting.iDisplayStatus = |
2405 aMessageWaiting->iDisplayStatus; |
2407 aMessageWaiting->iDisplayStatus; |
2406 |
2408 |
2407 // update central repository, only display status |
2409 // update central repository, only display status |
2436 // --------------------------------------------------------------------------- |
2438 // --------------------------------------------------------------------------- |
2437 // |
2439 // |
2438 TInt CMmSupplServTsy::NotifyIccMessageWaitingIndicatorChangeCancel( |
2440 TInt CMmSupplServTsy::NotifyIccMessageWaitingIndicatorChangeCancel( |
2439 const TTsyReqHandle aTsyReqHandle ) |
2441 const TTsyReqHandle aTsyReqHandle ) |
2440 { |
2442 { |
2441 TFLOGSTRING("TSY: CMmSupplServTsy::NotifyIccMessageWaitingIndicatorChangeCancel"); |
2443 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_NOTIFYICCMESSAGEWAITINGINDICATORCHANGECANCEL_1, "TSY: CMmSupplServTsy::NotifyIccMessageWaitingIndicatorChangeCancel"); |
2442 |
2444 |
2443 // Null the pointer to client-side data |
2445 // Null the pointer to client-side data |
2444 iRetNotifyMessageWaiting = NULL; |
2446 iRetNotifyMessageWaiting = NULL; |
2445 iMmPhone->iTsyReqHandleStore->ResetTsyReqHandle( |
2447 iMmPhone->iTsyReqHandleStore->ResetTsyReqHandle( |
2446 CMmPhoneTsy::EMultimodePhoneNotifyIccMessageWaitingIndicatorsChange ); |
2448 CMmPhoneTsy::EMultimodePhoneNotifyIccMessageWaitingIndicatorsChange ); |
2455 // (other items were commented in a header). |
2457 // (other items were commented in a header). |
2456 // --------------------------------------------------------------------------- |
2458 // --------------------------------------------------------------------------- |
2457 // |
2459 // |
2458 void CMmSupplServTsy::SetIccSupportForMWIS( TBool aSupport ) |
2460 void CMmSupplServTsy::SetIccSupportForMWIS( TBool aSupport ) |
2459 { |
2461 { |
2460 TFLOGSTRING2("TSY: CMmSupplServTsy::SetIccSupportForMWIS, support%d ", aSupport ); |
2462 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_SETICCSUPPORTFORMWIS_1, "TSY: CMmSupplServTsy::SetIccSupportForMWIS, support%d ", aSupport ); |
2461 |
2463 |
2462 iMessageWaitingSupportedByIcc = aSupport; |
2464 iMessageWaitingSupportedByIcc = aSupport; |
2463 } |
2465 } |
2464 |
2466 |
2465 // --------------------------------------------------------------------------- |
2467 // --------------------------------------------------------------------------- |
2469 // --------------------------------------------------------------------------- |
2471 // --------------------------------------------------------------------------- |
2470 // |
2472 // |
2471 TInt CMmSupplServTsy::ReadIccMessageWaitingIndicatorsFromCentRep( |
2473 TInt CMmSupplServTsy::ReadIccMessageWaitingIndicatorsFromCentRep( |
2472 RMobilePhone::TMobilePhoneMessageWaitingV1& aMessageWaiting ) |
2474 RMobilePhone::TMobilePhoneMessageWaitingV1& aMessageWaiting ) |
2473 { |
2475 { |
2474 TFLOGSTRING("TSY: CMmSupplServTsy::ReadIccMessageWaitingIndicatorsFromCentRep"); |
2476 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_READICCMESSAGEWAITINGINDICATORSFROMCENTREP_1, "TSY: CMmSupplServTsy::ReadIccMessageWaitingIndicatorsFromCentRep"); |
2475 |
2477 |
2476 TInt retval( KErrNone ); |
2478 TInt retval( KErrNone ); |
2477 TInt tempVal( 0 ); |
2479 TInt tempVal( 0 ); |
2478 |
2480 |
2479 // Read values from the central repository and check that it is positive |
2481 // Read values from the central repository and check that it is positive |
2524 // --------------------------------------------------------------------------- |
2526 // --------------------------------------------------------------------------- |
2525 // |
2527 // |
2526 TInt CMmSupplServTsy::WriteIccMessageWaitingIndicatorsToCentRep( |
2528 TInt CMmSupplServTsy::WriteIccMessageWaitingIndicatorsToCentRep( |
2527 const RMobilePhone::TMobilePhoneMessageWaitingV1& aMessageWaiting ) |
2529 const RMobilePhone::TMobilePhoneMessageWaitingV1& aMessageWaiting ) |
2528 { |
2530 { |
2529 TFLOGSTRING("TSY: CMmSupplServTsy::WriteIccMessageWaitingIndicatorsToCentRep"); |
2531 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_WRITEICCMESSAGEWAITINGINDICATORSTOCENTREP_1, "TSY: CMmSupplServTsy::WriteIccMessageWaitingIndicatorsToCentRep"); |
2530 |
2532 |
2531 TInt retval( KErrNone ); |
2533 TInt retval( KErrNone ); |
2532 |
2534 |
2533 // Write new values to the central repository |
2535 // Write new values to the central repository |
2534 retval = iMwisCentRep->Set( KCtsyMessageWaitingDisplayStatus, |
2536 retval = iMwisCentRep->Set( KCtsyMessageWaitingDisplayStatus, |
2535 aMessageWaiting.iDisplayStatus ); |
2537 aMessageWaiting.iDisplayStatus ); |
2536 TFLOGSTRING2("TSY: CMmSupplServTsy::WriteIccMessageWaitingIndicatorsToCentRep : iDisplayStatus:%u", aMessageWaiting.iDisplayStatus ); |
2538 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_WRITEICCMESSAGEWAITINGINDICATORSTOCENTREP_2, "TSY: CMmSupplServTsy::WriteIccMessageWaitingIndicatorsToCentRep : iDisplayStatus:%u", aMessageWaiting.iDisplayStatus ); |
2537 retval = iMwisCentRep->Set( KCtsyMessageWaitingVoiceMailCount, |
2539 retval = iMwisCentRep->Set( KCtsyMessageWaitingVoiceMailCount, |
2538 aMessageWaiting.iVoiceMsgs ); |
2540 aMessageWaiting.iVoiceMsgs ); |
2539 TFLOGSTRING2("TSY: CMmSupplServTsy::WriteIccMessageWaitingIndicatorsToCentRep : iVoiceMsgs:%u", aMessageWaiting.iVoiceMsgs ); |
2541 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_WRITEICCMESSAGEWAITINGINDICATORSTOCENTREP_3, "TSY: CMmSupplServTsy::WriteIccMessageWaitingIndicatorsToCentRep : iVoiceMsgs:%u", aMessageWaiting.iVoiceMsgs ); |
2540 retval = iMwisCentRep->Set( KCtsyMessageWaitingAuxLineCount, |
2542 retval = iMwisCentRep->Set( KCtsyMessageWaitingAuxLineCount, |
2541 aMessageWaiting.iAuxVoiceMsgs ); |
2543 aMessageWaiting.iAuxVoiceMsgs ); |
2542 TFLOGSTRING2("TSY: CMmSupplServTsy::WriteIccMessageWaitingIndicatorsToCentRep : iAuxVoiceMsgs:%u", aMessageWaiting.iAuxVoiceMsgs ); |
2544 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_WRITEICCMESSAGEWAITINGINDICATORSTOCENTREP_4, "TSY: CMmSupplServTsy::WriteIccMessageWaitingIndicatorsToCentRep : iAuxVoiceMsgs:%u", aMessageWaiting.iAuxVoiceMsgs ); |
2543 retval = iMwisCentRep->Set( KCtsyMessageWaitingDataCount, |
2545 retval = iMwisCentRep->Set( KCtsyMessageWaitingDataCount, |
2544 aMessageWaiting.iDataMsgs ); |
2546 aMessageWaiting.iDataMsgs ); |
2545 TFLOGSTRING2("TSY: CMmSupplServTsy::WriteIccMessageWaitingIndicatorsToCentRep : iDataMsgs:%u", aMessageWaiting.iDataMsgs ); |
2547 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_WRITEICCMESSAGEWAITINGINDICATORSTOCENTREP_5, "TSY: CMmSupplServTsy::WriteIccMessageWaitingIndicatorsToCentRep : iDataMsgs:%u", aMessageWaiting.iDataMsgs ); |
2546 retval = iMwisCentRep->Set( KCtsyMessageWaitingFaxCount, |
2548 retval = iMwisCentRep->Set( KCtsyMessageWaitingFaxCount, |
2547 aMessageWaiting.iFaxMsgs ); |
2549 aMessageWaiting.iFaxMsgs ); |
2548 TFLOGSTRING2("TSY: CMmSupplServTsy::WriteIccMessageWaitingIndicatorsToCentRep : iFaxMsgs:%u", aMessageWaiting.iFaxMsgs ); |
2550 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_WRITEICCMESSAGEWAITINGINDICATORSTOCENTREP_6, "TSY: CMmSupplServTsy::WriteIccMessageWaitingIndicatorsToCentRep : iFaxMsgs:%u", aMessageWaiting.iFaxMsgs ); |
2549 retval = iMwisCentRep->Set( KCtsyMessageWaitingEmailCount, |
2551 retval = iMwisCentRep->Set( KCtsyMessageWaitingEmailCount, |
2550 aMessageWaiting.iEmailMsgs ); |
2552 aMessageWaiting.iEmailMsgs ); |
2551 TFLOGSTRING2("TSY: CMmSupplServTsy::WriteIccMessageWaitingIndicatorsToCentRep : iEmailMsgs:%u", aMessageWaiting.iEmailMsgs ); |
2553 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_WRITEICCMESSAGEWAITINGINDICATORSTOCENTREP_7, "TSY: CMmSupplServTsy::WriteIccMessageWaitingIndicatorsToCentRep : iEmailMsgs:%u", aMessageWaiting.iEmailMsgs ); |
2552 retval = iMwisCentRep->Set( KCtsyMessageWaitingOtherMessageCount, |
2554 retval = iMwisCentRep->Set( KCtsyMessageWaitingOtherMessageCount, |
2553 aMessageWaiting.iOtherMsgs ); |
2555 aMessageWaiting.iOtherMsgs ); |
2554 TFLOGSTRING2("TSY: CMmSupplServTsy::WriteIccMessageWaitingIndicatorsToCentRep : iOtherMsgs:%u", aMessageWaiting.iOtherMsgs ); |
2556 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_WRITEICCMESSAGEWAITINGINDICATORSTOCENTREP_8, "TSY: CMmSupplServTsy::WriteIccMessageWaitingIndicatorsToCentRep : iOtherMsgs:%u", aMessageWaiting.iOtherMsgs ); |
2555 |
2557 |
2556 return retval; |
2558 return retval; |
2557 } |
2559 } |
2558 |
2560 |
2559 // --------------------------------------------------------------------------- |
2561 // --------------------------------------------------------------------------- |
2563 // --------------------------------------------------------------------------- |
2565 // --------------------------------------------------------------------------- |
2564 // |
2566 // |
2565 TBool CMmSupplServTsy::IsMwisInfoChanged( |
2567 TBool CMmSupplServTsy::IsMwisInfoChanged( |
2566 const RMobilePhone::TMobilePhoneMessageWaitingV1& aNewMessageWaiting ) |
2568 const RMobilePhone::TMobilePhoneMessageWaitingV1& aNewMessageWaiting ) |
2567 { |
2569 { |
2568 TFLOGSTRING("TSY: CMmSupplServTsy::IsMwisInfoChanged"); |
2570 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_ISMWISINFOCHANGED_1, "TSY: CMmSupplServTsy::IsMwisInfoChanged"); |
2569 |
2571 |
2570 TBool retval( ETrue ); |
2572 TBool retval( ETrue ); |
2571 |
2573 |
2572 if( aNewMessageWaiting.iDisplayStatus == iMessageWaiting.iDisplayStatus && |
2574 if( aNewMessageWaiting.iDisplayStatus == iMessageWaiting.iDisplayStatus && |
2573 aNewMessageWaiting.iVoiceMsgs == iMessageWaiting.iVoiceMsgs && |
2575 aNewMessageWaiting.iVoiceMsgs == iMessageWaiting.iVoiceMsgs && |
2613 // |
2615 // |
2614 TInt CMmSupplServTsy::NotifySendNetworkServiceRequest( |
2616 TInt CMmSupplServTsy::NotifySendNetworkServiceRequest( |
2615 const RMobilePhone::TMobilePhoneNotifySendSSOperation* aOperation, |
2617 const RMobilePhone::TMobilePhoneNotifySendSSOperation* aOperation, |
2616 TDes8* aSendSSRequestPckg ) |
2618 TDes8* aSendSSRequestPckg ) |
2617 { |
2619 { |
2618 TFLOGSTRING("TSY: CMmSupplServTsy::NotifySendNetworkServiceRequest" ); |
2620 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_NOTIFYSENDNETWORKSERVICEREQUEST_1, "TSY: CMmSupplServTsy::NotifySendNetworkServiceRequest" ); |
2619 |
2621 |
2620 if(sizeof(RMobilePhone::TMobilePhoneSendSSRequestV3) > aSendSSRequestPckg->MaxLength()) |
2622 if(sizeof(RMobilePhone::TMobilePhoneSendSSRequestV3) > aSendSSRequestPckg->MaxLength()) |
2621 { |
2623 { |
2622 TFLOGSTRING ("TSY: CMmNetTsy::NotifySendNetworkServiceRequest Bad size argument"); |
2624 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_NOTIFYSENDNETWORKSERVICEREQUEST_2, "TSY: CMmNetTsy::NotifySendNetworkServiceRequest Bad size argument"); |
2623 // Complete the request with appropiate error |
2625 // Complete the request with appropiate error |
2624 return KErrArgument; |
2626 return KErrArgument; |
2625 } |
2627 } |
2626 |
2628 |
2627 TPckg<RMobilePhone::TMobilePhoneSendSSRequestV3>* ssDataPckg = |
2629 TPckg<RMobilePhone::TMobilePhoneSendSSRequestV3>* ssDataPckg = |
2646 // --------------------------------------------------------------------------- |
2648 // --------------------------------------------------------------------------- |
2647 // |
2649 // |
2648 void CMmSupplServTsy::CompleteSendNetworkServiceRequestInd( |
2650 void CMmSupplServTsy::CompleteSendNetworkServiceRequestInd( |
2649 TInt aErrorCode, CMmDataPackage* aDataPackage ) |
2651 TInt aErrorCode, CMmDataPackage* aDataPackage ) |
2650 { |
2652 { |
2651 TFLOGSTRING2("TSY: CMmSupplServTsy::CompleteSendNetworkServiceRequestInd. Error: %d", aErrorCode ); |
2653 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETESENDNETWORKSERVICEREQUESTIND_1, "TSY: CMmSupplServTsy::CompleteSendNetworkServiceRequestInd. Error: %d", aErrorCode ); |
2652 |
2654 |
2653 // Reset req handle. Returns the deleted req handle |
2655 // Reset req handle. Returns the deleted req handle |
2654 TTsyReqHandle reqHandle = iMmPhone->iTsyReqHandleStore->ResetTsyReqHandle( |
2656 TTsyReqHandle reqHandle = iMmPhone->iTsyReqHandleStore->ResetTsyReqHandle( |
2655 CMmPhoneTsy::EMultimodePhoneNotifySendNetworkServiceRequest ); |
2657 CMmPhoneTsy::EMultimodePhoneNotifySendNetworkServiceRequest ); |
2656 |
2658 |
2693 // --------------------------------------------------------------------------- |
2695 // --------------------------------------------------------------------------- |
2694 // |
2696 // |
2695 TInt CMmSupplServTsy::NotifySendNetworkServiceRequestCancel( |
2697 TInt CMmSupplServTsy::NotifySendNetworkServiceRequestCancel( |
2696 const TTsyReqHandle aTsyReqHandle ) |
2698 const TTsyReqHandle aTsyReqHandle ) |
2697 { |
2699 { |
2698 TFLOGSTRING("TSY: CMmSupplServTsy::NotifySendNetworkServiceRequestCancel"); |
2700 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_NOTIFYSENDNETWORKSERVICEREQUESTCANCEL_1, "TSY: CMmSupplServTsy::NotifySendNetworkServiceRequestCancel"); |
2699 |
2701 |
2700 // Clear data pointers |
2702 // Clear data pointers |
2701 iRetSSDataPtrIndRequest = NULL; |
2703 iRetSSDataPtrIndRequest = NULL; |
2702 |
2704 |
2703 // Reset the req handle |
2705 // Reset the req handle |
2718 // |
2720 // |
2719 TInt CMmSupplServTsy::NotifyAllSendNetworkServiceRequest( |
2721 TInt CMmSupplServTsy::NotifyAllSendNetworkServiceRequest( |
2720 RMobilePhone::TMobilePhoneNotifySendSSOperation* aOperation, |
2722 RMobilePhone::TMobilePhoneNotifySendSSOperation* aOperation, |
2721 TDes8* aRequestComplete ) |
2723 TDes8* aRequestComplete ) |
2722 { |
2724 { |
2723 TFLOGSTRING("TSY: CMmSupplServTsy::NotifyAllSendNetworkRequest" ); |
2725 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_NOTIFYALLSENDNETWORKSERVICEREQUEST_1, "TSY: CMmSupplServTsy::NotifyAllSendNetworkRequest" ); |
2724 |
2726 |
2725 TPckg<RMobilePhone::TMobilePhoneSendSSRequestV3>* ssDataPckg = |
2727 TPckg<RMobilePhone::TMobilePhoneSendSSRequestV3>* ssDataPckg = |
2726 reinterpret_cast<TPckg<RMobilePhone::TMobilePhoneSendSSRequestV3>*> |
2728 reinterpret_cast<TPckg<RMobilePhone::TMobilePhoneSendSSRequestV3>*> |
2727 ( aRequestComplete ); |
2729 ( aRequestComplete ); |
2728 |
2730 |
2751 // --------------------------------------------------------------------------- |
2753 // --------------------------------------------------------------------------- |
2752 // |
2754 // |
2753 void CMmSupplServTsy::CompleteNotifyAllSendNetworkServiceRequest( |
2755 void CMmSupplServTsy::CompleteNotifyAllSendNetworkServiceRequest( |
2754 TInt aErrorCode, CMmDataPackage* aDataPackage ) |
2756 TInt aErrorCode, CMmDataPackage* aDataPackage ) |
2755 { |
2757 { |
2756 TFLOGSTRING2("TSY: CMmSupplServTsy::CompleteNotifyAllSendNetworkRequest. Error: %d", aErrorCode ); |
2758 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETENOTIFYALLSENDNETWORKSERVICEREQUEST_1, "TSY: CMmSupplServTsy::CompleteNotifyAllSendNetworkRequest. Error: %d", aErrorCode ); |
2757 |
2759 |
2758 // Reset req handle. Returns the deleted req handle |
2760 // Reset req handle. Returns the deleted req handle |
2759 TTsyReqHandle reqHandle = iMmPhone->iTsyReqHandleStore->ResetTsyReqHandle( |
2761 TTsyReqHandle reqHandle = iMmPhone->iTsyReqHandleStore->ResetTsyReqHandle( |
2760 CMmPhoneTsy::EMultimodePhoneNotifyAllSendNetworkServiceRequest ); |
2762 CMmPhoneTsy::EMultimodePhoneNotifyAllSendNetworkServiceRequest ); |
2761 |
2763 |
2785 // --------------------------------------------------------------------------- |
2787 // --------------------------------------------------------------------------- |
2786 // |
2788 // |
2787 TInt CMmSupplServTsy::NotifyAllSendNetworkServiceRequestCancel( |
2789 TInt CMmSupplServTsy::NotifyAllSendNetworkServiceRequestCancel( |
2788 const TTsyReqHandle aTsyReqHandle ) |
2790 const TTsyReqHandle aTsyReqHandle ) |
2789 { |
2791 { |
2790 TFLOGSTRING("TSY: CMmSupplServTsy::NotifyAllSendNetworkServiceRequestCancel"); |
2792 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_NOTIFYALLSENDNETWORKSERVICEREQUESTCANCEL_1, "TSY: CMmSupplServTsy::NotifyAllSendNetworkServiceRequestCancel"); |
2791 |
2793 |
2792 // Clear data pointers |
2794 // Clear data pointers |
2793 iRetSSOperationPtr = NULL; |
2795 iRetSSOperationPtr = NULL; |
2794 iRetSSDataPtrAllRequest = NULL; |
2796 iRetSSDataPtrAllRequest = NULL; |
2795 |
2797 |
2809 // (other items were commented in a header). |
2811 // (other items were commented in a header). |
2810 // --------------------------------------------------------------------------- |
2812 // --------------------------------------------------------------------------- |
2811 // |
2813 // |
2812 void CMmSupplServTsy::SetIccMwisBootUpFlag( TBool aBootUp ) |
2814 void CMmSupplServTsy::SetIccMwisBootUpFlag( TBool aBootUp ) |
2813 { |
2815 { |
2814 TFLOGSTRING2("TSY: CMmSupplServTsy::SetIccMwisBootUpFlag, aBootUp=%d", aBootUp ); |
2816 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_SETICCMWISBOOTUPFLAG_1, "TSY: CMmSupplServTsy::SetIccMwisBootUpFlag, aBootUp=%d", aBootUp ); |
2815 |
2817 |
2816 iGetIccSupportAtBoot = aBootUp; |
2818 iGetIccSupportAtBoot = aBootUp; |
2817 } |
2819 } |
2818 |
2820 |
2819 // End of File |
2821 // End of File |