CAccConfigFileParser Class Reference

class CAccConfigFileParser : public CBase

Configuration file parser interface.

AccSrvUtil.lib
Since
S60 3.1

Inherits from

  • CAccConfigFileParser

Constructor & Destructor Documentation

CAccConfigFileParser()

CAccConfigFileParser()[private]

C++ default constructor.

~CAccConfigFileParser()

IMPORT_C~CAccConfigFileParser()[virtual]

Destructor.

Member Functions Documentation

BitNumber(TUint64)

TInt BitNumber(TUint64aBitmask)[private]

Find a bit number from bitmask.

Since
S60 3.1

Parameters

TUint64 aBitmaskBitmask where a bit is searched.

ConstructL(const TDesC &)

voidConstructL(const TDesC &aConfFileName)[private]

By default Symbian 2nd phase constructor is private.

Parameters

const TDesC & aConfFileName

FindL(TAccPolGenericID &, TUint64, const TDesC &)

IMPORT_C voidFindL(TAccPolGenericID &aGenericID,
TUint64aHWDeviceID,
const TDesC &aHWModelID
)

Deprecated, will be removed.

Find a matching Generic ID for Device ID. Returned Generic ID is unique among the all Generic IDs

Since
S60 3.1

Parameters

TAccPolGenericID & aGenericIDOn successful return, contains the Generic ID.
TUint64 aHWDeviceIDDevice ID
const TDesC & aHWModelIDManufacturer specific model definition of the hardware (optional). Max size is KHWModelIDMaxLength, define in AccPolGIDHeader.h (e.g. TBuf<KHWModelIDMaxLength>).

FindL(CAccConGenericID *const, TUint64, const TDesC &)

IMPORT_C voidFindL(CAccConGenericID *const aGenericID,
TUint64aHWDeviceID,
const TDesC &aHWModelID
)

Find a matching Generic ID for Device ID. Returned Generic ID is unique among the all Generic IDs

Since
S60 3.1

Parameters

CAccConGenericID *const aGenericIDOn successful return, contains the Generic ID.
TUint64 aHWDeviceIDDevice ID
const TDesC & aHWModelIDManufacturer specific model definition of the hardware (optional). Max size is KHWModelIDMaxLength, define in AccPolGIDHeader.h (e.g. TBuf<KHWModelIDMaxLength>). If value is KNullDesC, model ID from Accessory Policy Database is used.

NewL(const TDesC &)

IMPORT_C CAccConfigFileParser *NewL(const TDesC &aConfFileName)[static]

Two-phased constructor.

Since
S60 3.1

Parameters

const TDesC & aConfFileNameThe name of the configuration file to be used. If KNullDesC, default configuration file is used. Only KNullDesC is supported.

ParseGenericIDL(CAccConGenericID *const, const TAccPolGIDHeader &, const RArray< TAccPolNameValueRecord > &)

IMPORT_C voidParseGenericIDL(CAccConGenericID *const aGenericID,
const TAccPolGIDHeader &aGenericIDHeader,
const RArray< TAccPolNameValueRecord > &aNameValueArray
)

Parse a Generic ID.

Since
S60 3.1

Parameters

CAccConGenericID *const aGenericIDOn successful return, contains the Generic ID.
const TAccPolGIDHeader & aGenericIDHeaderAccessory capabilities, the static part of the accessory information.
const RArray< TAccPolNameValueRecord > & aNameValueArrayAccessory capabilities, the dynamic part of the accessory information.

ParseNames(const TUint32 &, RArray< TUint32 > &)

voidParseNames(const TUint32 &aVal,
RArray< TUint32 > &aNames
)[private]

Detect all subblock names and append them to the given array.

Parameters

const TUint32 & aVal
RArray< TUint32 > & aNames

ParseSubblocks(const TUint64 &, RArray< TUint64 > &)

voidParseSubblocks(const TUint64 &aVal,
RArray< TUint64 > &aCaps
)[private]

Detect all subblock capabilities and append them to the given array.

Parameters

const TUint64 & aVal
RArray< TUint64 > & aCaps