CCFContextSourceSettingsManager Class Reference

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>

CFContextSourceSettingsManager.lib
Since
S60 5.0

Inherits from

  • CCFContextSourceSettingsManager

Member Functions Documentation

NewL(RFs &)

IMPORT_C CCFContextSourceSettingsManager *NewL(RFs &aFs)[static]

Parameters

RFs & aFs

NewLC(RFs &)

IMPORT_C CCFContextSourceSettingsManager *NewLC(RFs &aFs)[static]

Parameters

RFs & aFs

ParseSettingsL(const TDesC &, CCFContextSourceSettingArray &)

voidParseSettingsL(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.

Since
S60 5.0

Parameters

const TDesC & aSettingsFileFile to parse.
CCFContextSourceSettingArray & aSettingsFound and parsed settings.

ParseSettingsL(RFile &, CCFContextSourceSettingArray &)

voidParseSettingsL(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.

Since
S60 5.0

Parameters

RFile & aSettingsFileFile to parse. The settings manager takes ownership of the open file handle and will close handle when completed.
CCFContextSourceSettingArray & aSettingsFound and parsed settings.