| class CCFContextSourceSettingsManager : public CBase |
Context source settings manager. Provides an interface through from a specified file can be parsed XML format context source settings. Returns settings fully parsed in an array.
Context source setting is defined from following XML: <ContextSourceSettings> <SettingName attribute1="value1"> <ParamName param1="value1"> <ParamName param1="value1" param2="value2"> </SettingName> </ContextSourceSettings>
<ContextSourceSettings>: Mandatory tag which identifies this XML block as context source settings.
<SettingName>: Defines a name for the setting item. Can be name of the context source. All general attributes for this specific setting are set as attributes.
<ParamName>: Defines a parameter for this setting item. Parameter count is not restricted.
Below is few examples: <ContextSourceSettings> <CenRepKey category="0x12345678" key="0x00000001"> <Context keyvalue="0" source="Source" type="Type" value="Off"> <Context keyvalue="1" source="Source" type="Type" value="On"> </CenRepKey> </ContextSourceSettings>
<ContextSourceSettings> <SomeSetting param1="Value1" param2="Value2"> </ContextSourceSettings>
| Public Member Functions | |
|---|---|
| IMPORT_C CCFContextSourceSettingsManager * | NewL ( RFs &) |
| IMPORT_C CCFContextSourceSettingsManager * | NewLC ( RFs &) |
| void | ParseSettingsL (const TDesC &, CCFContextSourceSettingArray &) |
| void | ParseSettingsL ( RFile &, CCFContextSourceSettingArray &) |
| IMPORT_C CCFContextSourceSettingsManager * | NewL | ( | RFs & | aFs | ) | [static] |
| RFs & aFs |
| IMPORT_C CCFContextSourceSettingsManager * | NewLC | ( | RFs & | aFs | ) | [static] |
| RFs & aFs |
| void | ParseSettingsL | ( | const TDesC & | aSettingsFile, |
| CCFContextSourceSettingArray & | aSettings | |||
| ) | [pure virtual] | |||
Parses settings from a specified setting file. Result is given in an array. Array is not emptied. All found setting items will be appended in the end of the array.
| const TDesC & aSettingsFile | File to parse. |
| CCFContextSourceSettingArray & aSettings | Found and parsed settings. |
| void | ParseSettingsL | ( | RFile & | aSettingsFile, |
| CCFContextSourceSettingArray & | aSettings | |||
| ) | [pure virtual] | |||
Parses settings using an open file handle. Result is given in an array. Array is not emptied. All found setting items will be appended in the end of the array.
| RFile & aSettingsFile | File to parse. The settings manager takes ownership of the open file handle and will close handle when completed. |
| CCFContextSourceSettingArray & aSettings | Found and parsed settings. |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.