|
1 /* |
|
2 * Copyright (c) 2008 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: Definition of CSuplPsyInfoStoreManager. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef SUPLPSYINFOSTOREMANAGER_H |
|
19 #define SUPLPSYINFOSTOREMANAGER_H |
|
20 |
|
21 // INCLUDES |
|
22 #include <e32base.h> |
|
23 #include <centralrepository.h> |
|
24 #include <f32file.h> |
|
25 #include <lbs.h> |
|
26 |
|
27 #include "suplpsycellidinfo.h" |
|
28 |
|
29 |
|
30 /** |
|
31 * Class for performing Cenrep & file store operations |
|
32 * @lib nlacidsuplpsy.dll |
|
33 * @since S60 v3.1 |
|
34 */ |
|
35 |
|
36 class CSuplPsyInfoStoreManager : public CBase |
|
37 { |
|
38 |
|
39 public: // Constructors and destructor |
|
40 |
|
41 /** |
|
42 * Two phase constructor |
|
43 * @since S60 v3.1 |
|
44 */ |
|
45 static CSuplPsyInfoStoreManager* NewL(); |
|
46 |
|
47 /** |
|
48 * Destructor |
|
49 * @since S60 v3.1 |
|
50 */ |
|
51 ~CSuplPsyInfoStoreManager(); |
|
52 |
|
53 /** |
|
54 * Reads stored Location Information from file. |
|
55 * @since S60 v3.1 |
|
56 */ |
|
57 TInt ReadSuplPsyLocationInfo( HPositionGenericInfo& aPosInfo ); |
|
58 |
|
59 /** |
|
60 * Writes Location Information to file. |
|
61 * @since S60 v3.1 |
|
62 */ |
|
63 TInt WriteSuplPsyLocationInfo( const HPositionGenericInfo& aPosInfo ); |
|
64 |
|
65 /** |
|
66 * Reads stored Cell Id Information from SUPL PSY CR Key. |
|
67 * @since S60 v3.1 |
|
68 */ |
|
69 TInt ReadSuplPsyCellIdInfo( TCellIdInfo& aCellIdInfo ); |
|
70 |
|
71 /** |
|
72 * Writes Cell Id Information to SUPL PSY CR Key. |
|
73 * @since S60 v3.1 |
|
74 */ |
|
75 TInt WriteSuplPsyCellIdInfo( const TCellIdInfo& aCellIdInfo ); |
|
76 |
|
77 |
|
78 /** |
|
79 * Reads Cell Id Information from SUPL FW CR key. |
|
80 * @since S60 v3.1 |
|
81 */ |
|
82 TInt ReadSuplFwCellIdInfo( TCellIdInfo& aCellIdInfo ); |
|
83 |
|
84 |
|
85 private: |
|
86 |
|
87 /** |
|
88 * Constructor |
|
89 * @since S60 v3.1 |
|
90 */ |
|
91 CSuplPsyInfoStoreManager(); |
|
92 |
|
93 /** |
|
94 * 2nd phase constructor |
|
95 */ |
|
96 void ConstructL(); |
|
97 |
|
98 |
|
99 private: // Data |
|
100 |
|
101 CRepository* iRepoSuplPsy; |
|
102 CRepository* iRepoSuplFw; |
|
103 |
|
104 RFs iFs; |
|
105 RFile iFile; |
|
106 }; |
|
107 |
|
108 #endif // SUPLPSYINFOSTOREMANAGER_H |
|
109 |
|
110 // End of File |