CBIODatabase Class Reference

class CBIODatabase : public CBase

BIO information file (BIF) database.

This class reads the installed BIF files and allows information from them to be easily extracted.

BIO_INFO_FILE

Inherits from

Public Member Functions
~CBIODatabase()
IMPORT_C voidAddAllBifsL(RFs &)
IMPORT_C voidAddBifL(CBioInfoFileReader *)
IMPORT_C TIntBIOCount()
IMPORT_C const CArrayFix< TBioMsgId > *BIOEntryLC(TInt)
IMPORT_C const CBioInfoFileReader &BifReader(TInt)
IMPORT_C const CArrayFix< TBioMsgId > *BioEntryByTypeLC(TSearchList, TBioMsgIdType, TInt &)
IMPORT_C voidGetBioControlID(TInt, TUid &)
IMPORT_C voidGetBioControlIDL(TUid, TUid &)
IMPORT_C const TPtrCGetBioControlName(TInt)
IMPORT_C const TPtrCGetBioControlNameL(TUid)
IMPORT_C voidGetBioIndexWithMsgIDL(TUid, TInt &)
IMPORT_C voidGetBioMsgID(TInt, TUid &)
IMPORT_C const TPtrCGetBioParserName(TInt)
IMPORT_C const TPtrCGetBioParserNameL(TUid)
IMPORT_C voidGetDefaultSendBearerByTypeL(TUid, TBioMsgIdType, TBioMsgId &)
IMPORT_C voidGetDefaultSendBearerL(TUid, TBioMsgId &)
IMPORT_C voidGetDefaultSendBearerTypeL(TUid, TBioMsgIdType &)
IMPORT_C const TPtrCGetFileExtL(TUid)
IMPORT_C voidGetIdentifierTextL(TUid, TBioMsgIdType, TBioMsgIdText &)
IMPORT_C voidGetPortNumberL(TUid, TBioMsgIdType, TInt &)
IMPORT_C TIntIsBioMessageL(TBioMsgIdType, const TDesC &, TUint16, TUid &)
IMPORT_C TIntIsBioMessageL(TBioMsgId, TUid &)
IMPORT_C CBIODatabase *NewL(RFs &)
IMPORT_C CBIODatabase *NewLC(RFs &)
IMPORT_C voidRemoveBifL(TUid)
IMPORT_C voidRemoveBifL(TInt)
Private Member Functions
CBIODatabase()
voidConstructL(RFs &)
voidGetTransportIDL(TInt, TBioMsgIdType, TBioMsgId &)
TBool IsLanguageFileL(const TDesC &, TInt &)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enumTSearchList { EStart, ENext }
Private Attributes
CArrayPtrFlat< CBioInfoFileReader > *iBifReaders

Constructor & Destructor Documentation

CBIODatabase()

CBIODatabase()[private]

~CBIODatabase()

IMPORT_C~CBIODatabase()

Destructor.

Member Functions Documentation

AddAllBifsL(RFs &)

IMPORT_C voidAddAllBifsL(RFs &afileSystem)

Initialises the object from all the BIF files in the system\bif or resource\messaging\bif directory.

Parameters

RFs & afileSystemConnected file system handle

AddBifL(CBioInfoFileReader *)

IMPORT_C voidAddBifL(CBioInfoFileReader *aBifReader)

Adds a specified BIF.

Parameters

CBioInfoFileReader * aBifReader

BIOCount()

IMPORT_C TIntBIOCount()

Gets the number of BIF files.

BIOEntryLC(TInt)

IMPORT_C const CArrayFix< TBioMsgId > *BIOEntryLC(TIntindex)

Gets the ID array of a BIF at a specified index.

Parameters

TInt indexIndex

BifReader(TInt)

IMPORT_C const CBioInfoFileReader &BifReader(TIntaIndex)const

Gets a BIF reader for a BIF at a specified index.

Parameters

TInt aIndexIndex

BioEntryByTypeLC(TSearchList, TBioMsgIdType, TInt &)

IMPORT_C const CArrayFix< TBioMsgId > *BioEntryByTypeLC(TSearchListaSearchType,
TBioMsgIdTypeportType,
TInt &rIndex
)

Gets the ID array of a BIF of a specified bearer source type.

Parameters

TSearchList aSearchTypeSearch type
TBioMsgIdType portTypeBearer source type
TInt & rIndexOn return, index of found BIF

ConstructL(RFs &)

voidConstructL(RFs &afileSystem)[private]

Parameters

RFs & afileSystem

GetBioControlID(TInt, TUid &)

IMPORT_C voidGetBioControlID(TIntaIndex,
TUid &rControlID
)

Depreacated method.

Need to use CBIODatabase::GetBioControlName instead.

CBIODatabase::GetBioControlName
panic
USER EInvariantFalse

Parameters

TInt aIndexNot used
TUid & rControlIDNot used

GetBioControlIDL(TUid, TUid &)

IMPORT_C voidGetBioControlIDL(TUidaMsgID,
TUid &rControlID
)

Depreacated method.

Need to use CBIODatabase::GetBioControlNameL instead.

CBIODatabase::GetBioControlNameL
panic
USER EInvariantFalse

Parameters

TUid aMsgID
TUid & rControlIDNot used

GetBioControlName(TInt)

IMPORT_C const TPtrCGetBioControlName(TIntaIndex)

Gets the BIO control name for a specified index.

Parameters

TInt aIndexIndex

GetBioControlNameL(TUid)

IMPORT_C const TPtrCGetBioControlNameL(TUidaMsgID)

Gets the BIO control name for a specified BIO message type.

leave
KErrNotFound BIO message type does not exist

Parameters

TUid aMsgIDBIO message type

GetBioIndexWithMsgIDL(TUid, TInt &)

IMPORT_C voidGetBioIndexWithMsgIDL(TUidaMsgID,
TInt &rIndex
)

Gets the index of a BIF of a specified BIO message type.

leave
KErrNotFound Not found

Parameters

TUid aMsgIDBIO message type
TInt & rIndexOn return, index of found BIF

GetBioMsgID(TInt, TUid &)

IMPORT_C voidGetBioMsgID(TIntaIndex,
TUid &rMsgID
)

Gets the BIO message type for a specified index.

Parameters

TInt aIndexIndex
TUid & rMsgIDOn return, BIO message type

GetBioParserName(TInt)

IMPORT_C const TPtrCGetBioParserName(TIntaIndex)

Gets the BIO parser name for a specified index.

Parameters

TInt aIndexIndex

GetBioParserNameL(TUid)

IMPORT_C const TPtrCGetBioParserNameL(TUidaMsgID)

Gets the BIO parser name for a specified BIO message type.

leave
KErrNotFound Not found

Parameters

TUid aMsgIDBIO message type

GetDefaultSendBearerByTypeL(TUid, TBioMsgIdType, TBioMsgId &)

IMPORT_C voidGetDefaultSendBearerByTypeL(TUidaBioUID,
TBioMsgIdTypeaPortType,
TBioMsgId &rBioMsgIdentifier
)

Gets the default BIF ID entry for a specified BIO message type and bearer type.

leave
KErrNotFound Not found

Parameters

TUid aBioUIDBIO message type
TBioMsgIdType aPortTypeBearer type
TBioMsgId & rBioMsgIdentifierOn return, the default BIF ID entry

GetDefaultSendBearerL(TUid, TBioMsgId &)

IMPORT_C voidGetDefaultSendBearerL(TUidaBioUID,
TBioMsgId &rBioMsgIdentifier
)

Gets the default BIF ID entry for a specified BIO message type.

leave
KErrNotFound Not found

Parameters

TUid aBioUIDBIO message type
TBioMsgId & rBioMsgIdentifierOn return, the default BIF ID entry

GetDefaultSendBearerTypeL(TUid, TBioMsgIdType &)

IMPORT_C voidGetDefaultSendBearerTypeL(TUidaBioUID,
TBioMsgIdType &rPortType
)

Gets the bearer type for the default BIF ID entry for a specified BIO message type.

leave
KErrNotFound Not found

Parameters

TUid aBioUIDBIO message type
TBioMsgIdType & rPortTypeOn return, the bearer type

GetFileExtL(TUid)

IMPORT_C const TPtrCGetFileExtL(TUidaMsgID)

Gets the BIO file extension for a specified BIO message type.

leave
KErrNotFound Not found

Parameters

TUid aMsgIDBIO message type

GetIdentifierTextL(TUid, TBioMsgIdType, TBioMsgIdText &)

IMPORT_C voidGetIdentifierTextL(TUidaMsgID,
TBioMsgIdTypeaPortType,
TBioMsgIdText &aText
)

Gets the identifier text for the BIF ID entry for a specified BIO message type and bearer type.

Parameters

TUid aMsgIDBIO message type
TBioMsgIdType aPortTypeBearer type
TBioMsgIdText & aTextOn return, the identifier text

GetPortNumberL(TUid, TBioMsgIdType, TInt &)

IMPORT_C voidGetPortNumberL(TUidaMsgID,
TBioMsgIdTypeaPortType,
TInt &aPortNumber
)

Gets the port number for the BIF ID entry for a specified BIO message type and bearer type.

leave
KErrNotFound Not found

Parameters

TUid aMsgIDBIO message type
TBioMsgIdType aPortTypeBearer type
TInt & aPortNumberOn return, the port number

GetTransportIDL(TInt, TBioMsgIdType, TBioMsgId &)

voidGetTransportIDL(TIntaIndex,
TBioMsgIdTypeaPortType,
TBioMsgId &aBioMsgID
)[private]

Parameters

TInt aIndex
TBioMsgIdType aPortType
TBioMsgId & aBioMsgID

IsBioMessageL(TBioMsgIdType, const TDesC &, TUint16, TUid &)

IMPORT_C TIntIsBioMessageL(TBioMsgIdTypeaPortType,
const TDesC &aPattern,
TUint16aPort,
TUid &rBioMsgUID
)

Tests if there is a BIO parser for the specificed BIF ID settings.

Parameters

TBioMsgIdType aPortTypeBearer type
const TDesC & aPatternText identifier to match
TUint16 aPortPort to match
TUid & rBioMsgUIDOn return, the matching BIO message type

IsBioMessageL(TBioMsgId, TUid &)

IMPORT_C TIntIsBioMessageL(TBioMsgIdbioMessageData,
TUid &rBioMsgUID
)

Tests if there is a BIO parser for a specified BIF ID.

Parameters

TBioMsgId bioMessageDataBIF ID to match
TUid & rBioMsgUIDOn return, the matching BIO message type

IsLanguageFileL(const TDesC &, TInt &)

TBool IsLanguageFileL(const TDesC &aFileName,
TInt &aExtLength
)const [private]

Parameters

const TDesC & aFileName
TInt & aExtLength

NewL(RFs &)

IMPORT_C CBIODatabase *NewL(RFs &afileSystem)[static]

Allocates and constructs a new BIO database object.

It initialises the object from all the BIF files in the system\bif directory.

Parameters

RFs & afileSystemConnected file system handle

NewLC(RFs &)

IMPORT_C CBIODatabase *NewLC(RFs &afileSystem)[static]

Allocates and constructs a new BIO database object, leaving the object on the cleanup stack.

It initialises the object from all the BIF files in the system\bif directory.

Parameters

RFs & afileSystemConnected file system handle

RemoveBifL(TUid)

IMPORT_C voidRemoveBifL(TUidaMsgID)

Removes a BIF specified by UID.

Parameters

TUid aMsgIDBIO type UID

RemoveBifL(TInt)

IMPORT_C voidRemoveBifL(TIntaIndex)

Removes a BIF specified by index.

Parameters

TInt aIndexIndex of file in this object

Member Enumerations Documentation

Enum TSearchList

Search methods.

Enumerators

EStart

Begin search from the start.

ENext

Begin search from the last index position.

Member Data Documentation

CArrayPtrFlat< CBioInfoFileReader > * iBifReaders

CArrayPtrFlat< CBioInfoFileReader > *iBifReaders[private]