|
1 /* |
|
2 * Copyright (c) 2002-2005 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: class for holding SUPL settings |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef C_COMASUPLCOMMONCONFIG_H |
|
21 #define C_COMASUPLCOMMONCONFIG_H |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 class COMASuplSettings; |
|
26 class COMASuplInitilizeRequestor; |
|
27 class COMASuplPosHandlerBase; |
|
28 |
|
29 /** |
|
30 * class for holding common config for protocol handler plugins. |
|
31 * @lib eposomasuplprotocolhandler.lib |
|
32 * @since S60 v3.1u |
|
33 */ |
|
34 |
|
35 class COMASuplCommonConfig : public CBase |
|
36 { |
|
37 public: |
|
38 |
|
39 /** |
|
40 * NewL Method. |
|
41 * @since S60 v3.1u |
|
42 * @param None. |
|
43 * @return Instance of COMASuplCommonConfig |
|
44 */ |
|
45 IMPORT_C static COMASuplCommonConfig* COMASuplCommonConfig::NewL(); |
|
46 |
|
47 /** |
|
48 * ~COMASuplCommonConfig Method, Destructor |
|
49 * @since S60 v3.1u |
|
50 * @param None. |
|
51 * @return None |
|
52 */ |
|
53 ~COMASuplCommonConfig(); |
|
54 |
|
55 IMPORT_C void ReadOMASuplSettingsL(); |
|
56 |
|
57 private: // Constructor |
|
58 |
|
59 /** |
|
60 * C++ default constructor. |
|
61 */ |
|
62 COMASuplCommonConfig(); |
|
63 |
|
64 /** |
|
65 * Symbian 2nd phase constuction ConstuctL. |
|
66 * @since S60 v3.1u |
|
67 * @param None. |
|
68 * @return None |
|
69 */ |
|
70 void ConstructL(); |
|
71 |
|
72 void ReadOMASuplConfigurationL(); |
|
73 |
|
74 void LoadPosHandlerL(); |
|
75 |
|
76 public: |
|
77 |
|
78 //Tracing utility |
|
79 COMASuplTrace* iTrace; |
|
80 |
|
81 //Pos Handler |
|
82 COMASuplPosHandlerBase *iPosHandler; |
|
83 |
|
84 // OMA Supl Settings |
|
85 COMASuplSettings* iSuplSettings; |
|
86 |
|
87 // Container to store IMSI value |
|
88 RBuf iIMSI; |
|
89 |
|
90 // UT1 Timer for SUPL_START |
|
91 TInt iUT1_StartTimer; |
|
92 |
|
93 // UT2 Timer for SUPL_POS_INIT |
|
94 TInt iUT2_PosInitTimer; |
|
95 |
|
96 // UT3 Timer for SUPL_POS |
|
97 TInt iUT3_PosTimer; |
|
98 |
|
99 //Privacy Timer |
|
100 TInt iPrivacyTimer; |
|
101 |
|
102 //SET Mode |
|
103 TInt iSETMode; |
|
104 |
|
105 //SUPL Usage configuration |
|
106 TInt iSuplUsage; |
|
107 // Timer for persistent failure |
|
108 TInt iPersistFailTimer; |
|
109 |
|
110 TInt iSuplInitTimeOut; |
|
111 |
|
112 }; |
|
113 |
|
114 #endif //C_COMASUPLCOMMONCONFIG_H |