|
1 /* |
|
2 * Copyright (c) 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 definition for COMASuplSettingsRepository |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef C_COMASUPLSETTINGSREPOSITORY_H |
|
22 #define C_COMASUPLSETTINGSREPOSITORY_H |
|
23 |
|
24 |
|
25 #include <e32base.h> |
|
26 #include "epos_csuplsettingsinternal.h" |
|
27 |
|
28 class COMASuplTrace; |
|
29 |
|
30 /** |
|
31 * Represents the SUPL settings repository. Uses Supl Settings API to store |
|
32 * SUPL settings information |
|
33 * |
|
34 */ |
|
35 class COMASuplSettingsRepository : public CActive |
|
36 { |
|
37 |
|
38 public: |
|
39 |
|
40 /** |
|
41 * Factory function that instantiates a new object of COMASuplSettings |
|
42 * |
|
43 */ |
|
44 static COMASuplSettingsRepository* NewL(); |
|
45 |
|
46 /** |
|
47 * Destructor |
|
48 * |
|
49 */ |
|
50 ~COMASuplSettingsRepository(); |
|
51 |
|
52 public: |
|
53 |
|
54 /** |
|
55 * Save SUPL settings to system. |
|
56 * |
|
57 */ |
|
58 void SaveL( const TDesC& aIAP, const TDesC& aHSLP ); |
|
59 |
|
60 private: // Constructors and destructor |
|
61 |
|
62 /** |
|
63 * C++ Constructor |
|
64 */ |
|
65 COMASuplSettingsRepository(); |
|
66 |
|
67 /** |
|
68 * Symbian 2nd phase constructor |
|
69 */ |
|
70 void ConstructL(); |
|
71 |
|
72 /** |
|
73 * Request completion event handler |
|
74 */ |
|
75 void RunL(); |
|
76 |
|
77 /** |
|
78 * Implements cancellation of an outstanding request |
|
79 */ |
|
80 void DoCancel(); |
|
81 |
|
82 private: // Data |
|
83 |
|
84 enum TState |
|
85 { |
|
86 ENotInitialized = 0, |
|
87 EInitializing, |
|
88 EInitialized |
|
89 }; |
|
90 |
|
91 TState iState; |
|
92 |
|
93 CSuplSettingsInternal* iSettings; |
|
94 |
|
95 COMASuplTrace* iTrace; |
|
96 |
|
97 }; |
|
98 |
|
99 #endif // C_COMASUPLSETTINGSREPOSITORY_H |