equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0"" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "seccodemodel_p.h" |
|
19 #include "seccodeuiglobal.h" |
|
20 #include <e32err.h> |
|
21 #include <exterror.h> |
|
22 |
|
23 static int symbianErrtoQtErr(int err) |
|
24 { |
|
25 switch (err) { |
|
26 case KErrNone: |
|
27 return SecCode::ErrNone; |
|
28 case KErrGsm0707IncorrectPassword: |
|
29 return SecCode::ErrGsm0707IncorrectPassword; |
|
30 case KErrAccessDenied: |
|
31 return SecCode::ErrAccessDenied; |
|
32 case KErrGsmSSPasswordAttemptsViolation: |
|
33 return SecCode::ErrGsmSSPasswordAttemptsViolation; |
|
34 case KErrLocked: |
|
35 return SecCode::ErrLocked; |
|
36 case KErrGsm0707OperationNotAllowed: |
|
37 return SecCode::ErrGsm0707OperationNotAllowed; |
|
38 case KErrGsm0707SIMPuk2Required: |
|
39 return SecCode::ErrGsm0707SIMPuk2Required; |
|
40 case KErrAbort: |
|
41 return SecCode::ErrAbort; |
|
42 default: |
|
43 break; |
|
44 } |
|
45 |
|
46 return err; |
|
47 } |
|
48 |
|