CResourceFile Class Reference

class CResourceFile : public CBase

Accesses a resource file or resource file buffer and reads the resource data into a buffer.

Interpretation of the data is achieved using the RResourceReader class. CResourceFile methods behaviour when some problem occurs - it leaves with an error code. Most of the time the error code will be KErrCorrupt.

RResourceReader

Inherits from

Constructor & Destructor Documentation

CResourceFile()

CResourceFile()[private]

CResourceFile(const CResourceFile &)

CResourceFile(const CResourceFile &)[private]

Parameters

const CResourceFile &

~CResourceFile()

IMPORT_C~CResourceFile()[virtual]

Member Functions Documentation

AllocReadL(TInt)

IMPORT_C HBufC8 *AllocReadL(TIntaResourceId)const

Parameters

TInt aResourceId

AllocReadLC(TInt)

IMPORT_C HBufC8 *AllocReadLC(TIntaResourceId)const

Parameters

TInt aResourceId

ConfirmSignatureL(TInt)

IMPORT_C voidConfirmSignatureL(TIntaSignature)

Parameters

TInt aSignature

ConfirmSignatureL()

IMPORT_C voidConfirmSignatureL()

ConstructL(RFs &, const TDesC &, TUint, TInt)

voidConstructL(RFs &aFs,
const TDesC &aName,
TUintaFileOffset,
TIntaFileSize
)[private]

Parameters

RFs & aFs
const TDesC & aName
TUint aFileOffset
TInt aFileSize

ConstructL(const TDesC8 &)

voidConstructL(const TDesC8 &aRscFileBuffer)[private]

Parameters

const TDesC8 & aRscFileBuffer

Impl()

RResourceFileImpl *Impl()[private]

Impl()

const RResourceFileImpl *Impl()const [private]

NewL(RFs &, const TDesC &, TUint, TInt)

IMPORT_C CResourceFile *NewL(RFs &aFs,
const TDesC &aName,
TUintaFileOffset,
TIntaFileSize
)[static]

Parameters

RFs & aFs
const TDesC & aName
TUint aFileOffset
TInt aFileSize

NewL(const TDesC8 &)

IMPORT_C CResourceFile *NewL(const TDesC8 &aRscFileBuffer)[static]

Parameters

const TDesC8 & aRscFileBuffer

NewLC(RFs &, const TDesC &, TUint, TInt)

IMPORT_C CResourceFile *NewLC(RFs &aFs,
const TDesC &aName,
TUintaFileOffset,
TIntaFileSize
)[static]

Parameters

RFs & aFs
const TDesC & aName
TUint aFileOffset
TInt aFileSize

Offset()

IMPORT_C TIntOffset()const

OwnsResourceIdL(TInt)

IMPORT_C TBoolOwnsResourceIdL(TIntaResourceId)const

Parameters

TInt aResourceId

ReadL(TDes8 &, TInt)

IMPORT_C voidReadL(TDes8 &aDes,
TIntaResourceId
)const

Parameters

TDes8 & aDes
TInt aResourceId

SignatureL()

IMPORT_C TIntSignatureL()const

UidType()

IMPORT_C TUidTypeUidType()const

operator=(const CResourceFile &)

CResourceFile &operator=(const CResourceFile &)[private]

Parameters

const CResourceFile &

Member Enumerations Documentation

Enum anonymous

Enumerators

KRscFileSize = 24

Member Data Documentation

TUint8 iImpl

TUint8 iImpl[private]