Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]

#include <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:


Construction and destruction


NewLC(const TDesC &)

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

Description

Constructs a CCnaConvInfoFileReader2 object for a given .rsc file.

Parameters

const TDesC16 &aFileName

The .rsc file name.

Return value

CCnaConvInfoFileReader2 *

The new CCnaConvInfoFileReader2 object.


NewL(const TDesC &)

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

Description

Constructs a CCnaConvInfoFileReader2 object for a given .rsc file.

Parameters

const TDesC16 &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 CCnaConvInfoFileReader2::RestoreL() has not been called.

Return value

TInt

The number of converters.


AtL(TInt)

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 CCnaConvInfoFileReader2::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 CCnaConvInfoFileReader2::NewL(const TDesC &) or CCnaConvInfoFileReader2::NewLC(const TDesC &).