|
1 /* |
|
2 * Copyright (c) 2006-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 |
|
19 |
|
20 #ifndef CMMCOMMONSTATICUTILITY_H |
|
21 #define CMMCOMMONSTATICUTILITY_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <e32math.h> |
|
26 #include <etelpckt.h> |
|
27 #include "CMmPrivateUtility.h" |
|
28 #include <ctsy/serviceapi/cmmutility.h> |
|
29 |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Common Static Utility methods |
|
35 */ |
|
36 class CMmCommonStaticUtility : public CBase |
|
37 { |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Stores the core error code to lower 16 bits and adds the extended |
|
42 * error code to higher 16 bits and returns the error code that can be |
|
43 * sent to ETel Server. |
|
44 * |
|
45 * |
|
46 * @param aCoreErrorCode Core error code |
|
47 * @param aExtendedErrorCode Extended error code |
|
48 * @return TInt Error code sent to ETEL |
|
49 */ |
|
50 static TInt EpocErrorCode( TInt aCoreErrorCode, |
|
51 TInt aExtendedErrorCode ); |
|
52 |
|
53 /** |
|
54 * Returns higher 16 bits (extended error code) of the Epoc error code. |
|
55 * |
|
56 * |
|
57 * @param EpocErrorCode EPOC error code |
|
58 * @return TInt Extended error code |
|
59 */ |
|
60 static TInt ExtendedErrorCode( TInt EpocErrorCode ); |
|
61 |
|
62 }; |
|
63 |
|
64 #endif // CMMSTATICUTILITY_H |
|
65 |
|
66 // End of file |