133 * central repository values |
133 * central repository values |
134 * @since Series60 3.0 |
134 * @since Series60 3.0 |
135 */ |
135 */ |
136 const TPreferencesValues& AllPreferencesL(); |
136 const TPreferencesValues& AllPreferencesL(); |
137 |
137 |
138 private: // New functions |
|
139 |
|
140 /** |
|
141 * restores preferences from shared data db. If fails, it uses defaults. |
|
142 * @since Series60 1.2 |
|
143 */ |
|
144 void RestoreSettingsL(); |
|
145 |
|
146 private: //Utility functions for accessing shared data |
|
147 |
|
148 /** |
138 /** |
149 * To access an int value key in ini file |
139 * To access an int value key in ini file |
150 * @param aKey the ini file key to read |
140 * @param aKey the ini file key to read |
151 * @return the value of the given key |
141 * @return the value of the given key |
152 * @since Series60 2.0 |
142 * @since Series60 2.0 |
153 */ |
143 */ |
154 TInt GetIntValue( TUint32 aKey) const; |
144 TInt GetIntValue( TUint32 aKey) const; |
|
145 |
|
146 /** |
|
147 * To access an string value key in ini file |
|
148 * @param aKey the ini file key to read |
|
149 * @return the value of the given key |
|
150 * @since Series60 2.0 |
|
151 */ |
|
152 TInt GetStringValueL ( TUint32 aKey, TInt aMaxBufSize, TDes& aBuf ) const; |
|
153 |
|
154 private: // New functions |
|
155 |
|
156 /** |
|
157 * restores preferences from shared data db. If fails, it uses defaults. |
|
158 * @since Series60 1.2 |
|
159 */ |
|
160 void RestoreSettingsL(); |
|
161 |
|
162 private: //Utility functions for accessing shared data |
155 |
163 |
156 /** |
164 /** |
157 * To set an int value key in ini file |
165 * To set an int value key in ini file |
158 * @param aKey the ini file key to write |
166 * @param aKey the ini file key to write |
159 * @param aValue new value for the key |
167 * @param aValue new value for the key |
167 * @param aKey the ini file key to read |
175 * @param aKey the ini file key to read |
168 * @return the value of the given key |
176 * @return the value of the given key |
169 * @since Series60 2.0 |
177 * @since Series60 2.0 |
170 */ |
178 */ |
171 HBufC* GetStringValueL ( TUint32 aKey ) const; |
179 HBufC* GetStringValueL ( TUint32 aKey ) const; |
172 |
180 |
173 /** |
|
174 * To access an string value key in ini file |
|
175 * @param aKey the ini file key to read |
|
176 * @return the value of the given key |
|
177 * @since Series60 2.0 |
|
178 */ |
|
179 TInt GetStringValueL ( TUint32 aKey, TInt aMaxBufSize, TDes& aBuf ) const; |
|
180 |
|
181 /** |
181 /** |
182 * To set an int value key in ini file |
182 * To set an int value key in ini file |
183 * @param aKey the ini file key to write |
183 * @param aKey the ini file key to write |
184 * @param aValue new value for the key |
184 * @param aValue new value for the key |
185 * @return ETrue if successful |
185 * @return ETrue if successful |
958 /** |
958 /** |
959 * To get Maximum number of Recent URLs to be displayed in pop up |
959 * To get Maximum number of Recent URLs to be displayed in pop up |
960 */ |
960 */ |
961 inline TInt MaxRecentUrls() const; |
961 inline TInt MaxRecentUrls() const; |
962 |
962 |
963 |
963 /** |
|
964 * To get Search Feature Flag. |
|
965 */ |
|
966 inline TInt SearchFeature() const; |
|
967 |
|
968 /** |
|
969 * To get Service Feature Flag. |
|
970 */ |
|
971 inline TInt ServiceFeature() const; |
|
972 |
964 private: |
973 private: |
965 |
974 |
966 /** |
975 /** |
967 * Constructor. |
976 * Constructor. |
968 * @param aCommsModel Comms model. |
977 * @param aCommsModel Comms model. |