equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2002-2007 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
16 */ |
16 */ |
17 |
17 |
18 |
18 |
19 #include <cphcltussdsatclient.h> |
19 #include <cphcltussdsatclient.h> |
20 #include <cphcltussd.h> |
20 #include <cphcltussd.h> |
|
21 #include <exterror.h> |
21 |
22 |
22 #include "MSatSystemState.h" |
23 #include "MSatSystemState.h" |
23 #include "MSatApi.h" |
24 #include "MSatApi.h" |
24 #include "MSatUtils.h" |
25 #include "MSatUtils.h" |
25 #include "MSatUiSession.h" |
26 #include "MSatUiSession.h" |
689 iSendUssdRsp.iAdditionalInfo.Zero(); |
690 iSendUssdRsp.iAdditionalInfo.Zero(); |
690 } |
691 } |
691 else if ( TSatExtErrorUtils::IsExtendedError( aError ) ) // extended error |
692 else if ( TSatExtErrorUtils::IsExtendedError( aError ) ) // extended error |
692 { |
693 { |
693 TUint8 addInfo( 0 ); |
694 TUint8 addInfo( 0 ); |
|
695 if ( KErrGsmCCCallRejected == aError ) |
|
696 { |
|
697 LOG( SIMPLE, |
|
698 "SENDUSSD: CSendUssdHandler::HandleSendUssdResult permanent error" ) |
|
699 // ussd request is rejected by SIM |
|
700 iSendUssdRsp.iGeneralResult = RSat::KInteractionWithCCPermanentError; |
|
701 iSendUssdRsp.iInfoType = RSat::KMeProblem; |
|
702 addInfo = RSat::KActionNotAllowed; |
|
703 } |
694 // Check and map network failure |
704 // Check and map network failure |
695 if ( TSatExtErrorUtils::IsNetworkError( aError ) ) |
705 else if ( TSatExtErrorUtils::IsNetworkError( aError ) ) |
696 { |
706 { |
697 LOG( SIMPLE, |
707 LOG( SIMPLE, |
698 "SENDUSSD: CSendUssdHandler::HandleSendUssdResult NetworkError" ) |
708 "SENDUSSD: CSendUssdHandler::HandleSendUssdResult NetworkError" ) |
699 // Network error, map and modify |
709 // Network error, map and modify |
700 addInfo = TSatExtErrorUtils::MapError( aError ); |
710 addInfo = TSatExtErrorUtils::MapError( aError ); |