CHciUtil Class Reference

class CHciUtil : public CBase

Inherits from

Constructor & Destructor Documentation

CHciUtil()

CHciUtil()[private]

~CHciUtil()

IMPORT_C~CHciUtil()

Member Functions Documentation

CloseIniFile()

IMPORT_C voidCloseIniFile()

Closes any ini file currently open.

ConstructL(const TDesC &)

voidConstructL(const TDesC &aComponentName)[private]

Parameters

const TDesC & aComponentName

DestroyedImplementation(TUid)

IMPORT_C voidDestroyedImplementation(TUidaKey)[static]

Indicates that a specific ECom instance should be destroyed.

Parameters

TUid aKey

FormatUidL(TPtrC &)

TUid FormatUidL(TPtrC &aDes)[private]

Parameters

TPtrC & aDes

FormatValueL(TPtrC &)

TUint FormatValueL(TPtrC &aDes)[private]

Parameters

TPtrC & aDes

GetFromFileL(const TDesC &, const TDesC &, TPtrC &)

voidGetFromFileL(const TDesC &aSection,
const TDesC &aTag,
TPtrC &aRetText
)[private]

Parameters

const TDesC & aSection
const TDesC & aTag
TPtrC & aRetText

GetUidFromFileL(const TDesC &, const TDesC &)

IMPORT_C TUidGetUidFromFileL(const TDesC &aSection,
const TDesC &aTag
)

Gets a TUid from an opened ini file.

Parameters

const TDesC & aSectionThe section name under which the tag for the UID is to be found.
const TDesC & aTagThe tag which marks up the UID that is required.

GetValueFromFileL(const TDesC &, const TDesC &)

IMPORT_C TUintGetValueFromFileL(const TDesC &aSection,
const TDesC &aTag
)

Gets a numeric value from an opened ini file.

Parameters

const TDesC & aSectionThe section name under which the tag for the UID is to be found.
const TDesC & aTagThe tag which marks up the UID that is required.

LoadImplementationL(TUid, TInt)

IMPORT_C TAny *LoadImplementationL(TUidaIfUid,
TIntaKeyOffset
)[static]
Utility for loading HCI plugins. Attempts to create a plugin instance with the appropriate interface.
leave
KErrNotFound If no ECom plugins supporting the supplied interface UID are available.
leave
KErrArgument If more than one ECom plugin implementations are providing the specified interface.

Parameters

TUid aIfUidThe ECom interface UID to create an instance of.
TInt aKeyOffsetThe key offset.

LoadImplementationL(TUid, TUid, TInt)

IMPORT_C TAny *LoadImplementationL(TUidaIfUid,
TUidaImplUid,
TIntaKeyOffset
)[static]

Parameters

TUid aIfUid
TUid aImplUid
TInt aKeyOffset

NewL(const TDesC &)

IMPORT_C CHciUtil *NewL(const TDesC &aComponentName)[static]

Creates an instance of CHciUtil for working with a HCI config file for a particular component.

Parameters

const TDesC & aComponentNameThe name of the component using the instance.

OpenIniFileL()

IMPORT_C voidOpenIniFileL()
Opens an ini file based on the name of the component (provided when the CHciUtil instance was created.) It looks for the file in the default path.
panic
KHciUtilPanic EAlreadyAnInFileOpen If the CHciUtil instance already has an ini file opened.

OpenIniFileL(const TDesC &, const TDesC &)

IMPORT_C voidOpenIniFileL(const TDesC &aPath,
const TDesC &aFile
)
Opens an ini file with a particular name in a given path location.
panic
KHciUtilPanic EAlreadyAnIniFileOpen If the CHciUtil instance already has an ini file opened.

Parameters

const TDesC & aPathThe path the ini file is located.
const TDesC & aFileThe name of the ini file to be opened.

SymbianErrorCode(THCIErrorCode)

IMPORT_C TIntSymbianErrorCode(THCIErrorCodeaErrorCode)[static]

A Method that converts a HCI error code (as defined by the Bluetooth specification) into a Symbian error code.

Parameters

THCIErrorCode aErrorCodeThe HCI error code to be converted

Member Data Documentation

TBuf< KMaxHciUtilComponentName > iCompName

TBuf< KMaxHciUtilComponentName >iCompName[private]

CIniFileData * iIniFile

CIniFileData *iIniFile[private]