|
1 /* |
|
2 * Copyright (c) 2002 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: Utility tool class to change between ETEL and GSM codes. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef PSETUTILITY_H |
|
20 #define PSETUTILITY_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <nwdefs.h> |
|
25 #include <etelmm.h> |
|
26 |
|
27 // CLASS DECLARATION |
|
28 /** |
|
29 * Class is used to translate between ETEL internal basic service codes and |
|
30 * basic service codes defined in the GSM standard. Class is also used to |
|
31 * convert multimode Etel parameters to existing parameter types. |
|
32 * |
|
33 * @lib phonesettings.dll |
|
34 * @since 2.0 |
|
35 */ |
|
36 class PSetUtility |
|
37 { |
|
38 public: // New functions |
|
39 |
|
40 /** |
|
41 * ChangeToEtelInternal maps GSM bsc codes to ETEL equivalents. |
|
42 * @param aBsc Basic service code as in GSM standard. |
|
43 * @return Basic service code as defined inside Etel. |
|
44 */ |
|
45 /***************************************************** |
|
46 * Series 60 Customer / ETel |
|
47 * Series 60 ETel API |
|
48 *****************************************************/ |
|
49 static RMobilePhone::TMobileService ChangeToEtelInternal( |
|
50 const TBasicServiceGroups& aBsc ); |
|
51 |
|
52 /** |
|
53 * ChangeToGSM maps ETEL bsc codes to GSM equivalents. |
|
54 * @param aBsc Basic service code as defined inside Etel. |
|
55 * @return Basic service code as in GSM standard. |
|
56 */ |
|
57 /***************************************************** |
|
58 * Series 60 Customer / ETel |
|
59 * Series 60 ETel API |
|
60 *****************************************************/ |
|
61 static TBasicServiceGroups ChangeToGSM( |
|
62 const RMobilePhone::TMobileService& aBsc ); |
|
63 /** |
|
64 * GetChangeInfoStatus maps multimode ETel parameter to |
|
65 * PhoneSettings internal parameter type. This is to ensure |
|
66 * binary compatibility of dependent modules. |
|
67 * @param aAction divert action type. |
|
68 * @return TDivertingStatus divert action type |
|
69 */ |
|
70 /***************************************************** |
|
71 * Series 60 Customer / ETel |
|
72 * Series 60 ETel API |
|
73 *****************************************************/ |
|
74 static TDivertingStatus GetChangeInfoStatus( |
|
75 RMobilePhone::TMobilePhoneServiceAction& aAction ); |
|
76 |
|
77 /** |
|
78 * GetDivertReason maps multimode ETel parameter to |
|
79 * PhoneSettings internal parameter type. This is to ensure |
|
80 * binary compatibility of dependent modules. |
|
81 * @param aCondition divert condition. |
|
82 * @return TCallDivertingCondition divert condition |
|
83 */ |
|
84 /***************************************************** |
|
85 * Series 60 Customer / ETel |
|
86 * Series 60 ETel API |
|
87 *****************************************************/ |
|
88 static RMobilePhone::TMobilePhoneCFCondition |
|
89 GetDivertReason( TCallDivertingCondition aCondition ); |
|
90 |
|
91 static TCallDivertingCondition |
|
92 GetDivertReason( RMobilePhone::TMobilePhoneCFCondition aCondition ); |
|
93 |
|
94 static RMobilePhone::TMobileService VerifyAltLineUseL(); |
|
95 }; |
|
96 |
|
97 #endif // PSETUTILITY_H |
|
98 |
|
99 // End of File |