CBioInfoFileReader Class Reference

class CBioInfoFileReader : public CBioInfoFile

BIO information file (BIF) reader.

Allows reading (all but the icons) from an existing BIF file.

Inherits from

Public Member Functions
~CBioInfoFileReader()
IMPORT_C const CBifEntry &BifEntry()
IMPORT_C const TPtrCDescription()
IMPORT_C const TPtrCFileExtension()
IMPORT_C TInt16GeneralData1()
IMPORT_C TInt16GeneralData2()
IMPORT_C TInt16GeneralData3()
IMPORT_C const TPtrCIconsFilename()
IMPORT_C const CArrayFixFlat< TBioMsgId > *IdsLC()
IMPORT_C const TPtrCMessageAppCtrlName()
IMPORT_C TUidMessageAppCtrlUid()
IMPORT_C TUidMessageAppUid()
IMPORT_C const TPtrCMessageParserName()
IMPORT_C TUidMessageTypeUid()
IMPORT_C CBioInfoFileReader *NewL(RFs &, const TDesC &, TUid)
IMPORT_C CBioInfoFileReader *NewLC(RFs &, const TDesC &, TUid)
IMPORT_C TIntZoomLevelsCount()
IMPORT_C const CArrayFixFlat< TInt16 > *ZoomLevelsLC()
Private Member Functions
CBioInfoFileReader(RFs &)
voidConstructL(const TDesC &, TUid)
voidInternalizeL(RReadStream &)
TBool IsDatFile(const TUidType &)
TBool IsResFileL()
voidLoadDataL(TUid)
voidLoadResourceL(TUid)
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()
CBioInfoFile::CBioInfoFile(RFs &)
CBioInfoFile::ConstructL()
CBioInfoFile::~CBioInfoFile()
Private Attributes
CBifEntry *iEntry
HBufC *iFileName
Inherited Attributes
CBioInfoFile::iDescription
CBioInfoFile::iFileExtension
CBioInfoFile::iFs
CBioInfoFile::iGeneralData1
CBioInfoFile::iGeneralData2
CBioInfoFile::iGeneralData3
CBioInfoFile::iIconZoomLevelArray
CBioInfoFile::iIconsFilename
CBioInfoFile::iIdHeaderArray
CBioInfoFile::iMessageAppCtrlName
CBioInfoFile::iMessageAppUid
CBioInfoFile::iMessageParserName
CBioInfoFile::iMessageTypeUid

Constructor & Destructor Documentation

CBioInfoFileReader(RFs &)

CBioInfoFileReader(RFs &aFs)[private]

Parameters

RFs & aFs

~CBioInfoFileReader()

IMPORT_C~CBioInfoFileReader()[virtual]

Destructor.

Member Functions Documentation

BifEntry()

IMPORT_C const CBifEntry &BifEntry()const

BIF entry.

ConstructL(const TDesC &, TUid)

voidConstructL(const TDesC &aFileName,
TUidaMsgTypeUid
)[private]

Parameters

const TDesC & aFileName
TUid aMsgTypeUid

Description()

IMPORT_C const TPtrCDescription()const

Gets the BIF's description setting.

FileExtension()

IMPORT_C const TPtrCFileExtension()const

Gets the BIF's file extension setting.

GeneralData1()

IMPORT_C TInt16GeneralData1()const

Gets the BIF's general data 1 setting.

GeneralData2()

IMPORT_C TInt16GeneralData2()const

Gets the BIF's general data 2 setting.

GeneralData3()

IMPORT_C TInt16GeneralData3()const

Gets the BIF's general data 3 setting.

IconsFilename()

IMPORT_C const TPtrCIconsFilename()const

Gets the BIF's icons filename setting.

IdsLC()

IMPORT_C const CArrayFixFlat< TBioMsgId > *IdsLC()const

Gets the BIF's ID array.

The of IDs is left of the cleanup stack and ownership is returned to the caller.

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)[private]

Parameters

RReadStream & aStream

IsDatFile(const TUidType &)

TBool IsDatFile(const TUidType &aUidType)const [private]

Parameters

const TUidType & aUidType

IsResFileL()

TBool IsResFileL()const [private]

LoadDataL(TUid)

voidLoadDataL(TUidaMsgTypeUid)[private]

Parameters

TUid aMsgTypeUid

LoadResourceL(TUid)

voidLoadResourceL(TUidaMsgTypeUid)[private]

Parameters

TUid aMsgTypeUid

MessageAppCtrlName()

IMPORT_C const TPtrCMessageAppCtrlName()const

Gets the BIF's control name.

MessageAppCtrlUid()

IMPORT_C TUidMessageAppCtrlUid()const

MessageAppUid()

IMPORT_C TUidMessageAppUid()const

Gets the BIF's application UID setting.

MessageParserName()

IMPORT_C const TPtrCMessageParserName()const

Gets the BIF's message parser name.

MessageTypeUid()

IMPORT_C TUidMessageTypeUid()const

Gets the BIF's message type UID setting.

NewL(RFs &, const TDesC &, TUid)

IMPORT_C CBioInfoFileReader *NewL(RFs &aFs,
const TDesC &aFileName,
TUidaMsgTypeUid = KNullUid
)[static]

Allocates and constructs a new BIF reader object.

It loads the specified BIF file.

Parameters

RFs & aFsConnected file handle
const TDesC & aFileNameBIF file name
TUid aMsgTypeUid = KNullUidOptional message type UID. If this is specified, and the file does not does not describe this type, then it leaves with KErrCorrupt.

NewLC(RFs &, const TDesC &, TUid)

IMPORT_C CBioInfoFileReader *NewLC(RFs &aFs,
const TDesC &aFileName,
TUidaMsgTypeUid = KNullUid
)[static]

Allocates and constructs a new BIF reader object, leaving the object on the cleanup stack.

It loads the specified BIF file.

Parameters

RFs & aFsConnected file handle
const TDesC & aFileNameBIF file name
TUid aMsgTypeUid = KNullUidOptional message type UID. If this is specified, and the file does not does not describe this type, then it leaves with KErrCorrupt.

ZoomLevelsCount()

IMPORT_C TIntZoomLevelsCount()const

Gets the BIF's number of icon zoom levels.

ZoomLevelsLC()

IMPORT_C const CArrayFixFlat< TInt16 > *ZoomLevelsLC()const

Gets the BIF's icon zoom levels setting.

The array of icon zoom level settings is left of the cleanup stack and ownership is returned to the caller.

Member Data Documentation

CBifEntry * iEntry

CBifEntry *iEntry[private]

HBufC * iFileName

HBufC *iFileName[private]