CAccConfigFileParser Class Reference

class CAccConfigFileParser : public CBase

Configuration file parser interface.

AccSrvUtil.lib
Since
S60 3.1

Inherits from

Constructor & Destructor Documentation

CAccConfigFileParser()

CAccConfigFileParser ( ) [private]

C++ default constructor.

~CAccConfigFileParser()

IMPORT_C ~CAccConfigFileParser ( ) [virtual]

Destructor.

Member Functions Documentation

BitNumber(TUint64)

TInt BitNumber ( TUint64 aBitmask ) [private]

Find a bit number from bitmask.

Since
S60 3.1

Parameters

TUint64 aBitmask Bitmask where a bit is searched.

ConstructL(const TDesC &)

void ConstructL ( const TDesC & aConfFileName ) [private]

By default Symbian 2nd phase constructor is private.

Parameters

const TDesC & aConfFileName

FindL(TAccPolGenericID &, TUint64, const TDesC &)

IMPORT_C void FindL ( TAccPolGenericID & aGenericID,
TUint64 aHWDeviceID,
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 & aGenericID On successful return, contains the Generic ID.
TUint64 aHWDeviceID Device ID
const TDesC & aHWModelID Manufacturer 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 void FindL ( CAccConGenericID *const aGenericID,
TUint64 aHWDeviceID,
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 aGenericID On successful return, contains the Generic ID.
TUint64 aHWDeviceID Device ID
const TDesC & aHWModelID Manufacturer 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 & aConfFileName The 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 void ParseGenericIDL ( CAccConGenericID *const aGenericID,
const TAccPolGIDHeader & aGenericIDHeader,
const RArray < TAccPolNameValueRecord > & aNameValueArray
)

Parse a Generic ID.

Since
S60 3.1

Parameters

CAccConGenericID *const aGenericID On successful return, contains the Generic ID.
const TAccPolGIDHeader & aGenericIDHeader Accessory capabilities, the static part of the accessory information.
const RArray < TAccPolNameValueRecord > & aNameValueArray Accessory capabilities, the dynamic part of the accessory information.

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

void ParseNames ( 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 > &)

void ParseSubblocks ( 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