Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Location: concnf.h
Link against: conarc.lib

Class CCnaConvInfoFileReader2

class CCnaConvInfoFileReader2 : public CCnaConvInfoFile2;

Description

Encapsulates a collection of converter properties (CCnaConverter) read from a converter information (.rsc) file.

Derivation

Members

Defined in CCnaConvInfoFileReader2:
AtL(), Count(), NewL(), NewLC(), RestoreL()


Construction and destruction


NewLC()

static IMPORT_C CCnaConvInfoFileReader2 *NewLC(const TDesC &aFileName);

Description

Constructs a CCnaConvInfoFileReader2 object for a given .rsc file.

Parameters

const TDesC &aFileName

The .rsc file name.

Return value

CCnaConvInfoFileReader2 *

The new CCnaConvInfoFileReader2 object.


NewL()

static IMPORT_C CCnaConvInfoFileReader2 *NewL(const TDesC &aFileName);

Description

Constructs a CCnaConvInfoFileReader2 object for a given .rsc file.

Parameters

const TDesC &aFileName

The .rsc file name.

Return value

CCnaConvInfoFileReader2 *

The new CCnaConvInfoFileReader2 object.

[Top]


Member functions


Count()

IMPORT_C TInt Count();

Description

Gets the number of converters that were restored from the .rsc file.

This function returns zero if RestoreL() has not been called.

Return value

TInt

The number of converters.


AtL()

IMPORT_C CCnaConverter *AtL(TInt anIndex);

Description

Constructs and returns a new CCnaConverter object that is a copy of the converter at the specified index.

Parameters

TInt anIndex

An index into the object's array of converters. The array is created by calling RestoreL(). The index must be valid, or a panic occurs.

Return value

CCnaConverter *

A copy of the converter at the specified index. The caller takes ownership.


RestoreL()

IMPORT_C void RestoreL();

Description

Restores all the converters from the .rsc file that was specified in the NewL() or NewLC().