Location:
convnames.h
Link against: convnames.lib
class CCnvCharacterSetNames : public CBase, public MDesC16Array;
A localised list of the names of non-Unicode character set encodings supported on the phone.
For each character conversion plug-in DLL, there are one or more resource files which contain the name of the encoding translated into a different language.
This class populates a list of the names of all encodings supported on the phone by reading the appropriate resource file for each one. The list is sorted according to the collation rules for the device's current locale.
The virtual functions MdcaCount()
(returns the number of items in the list) and MdcaPoint()
(returns a TPtrC for the item at the given index) are implemented privately in this class. Users of this class can call them
through the MDesCArray interface.
MDesC16Array
- Interface class for 16 bit descriptor arrays
CBase
- Base class for all classes to be instantiated on the heap
CCnvCharacterSetNames
- A localised list of the names of non-Unicode character set encodings supported on the phone
Defined in CCnvCharacterSetNames
:
IdentifierAtIndex()
, IndexOfIdentifier()
, MdcaCount()
, MdcaPoint()
, NewL()
, NewLC()
, ~CCnvCharacterSetNames()
Inherited from CBase
:
Delete()
,
Extension_()
,
operator new()
static IMPORT_C CCnvCharacterSetNames *NewL(RFs &aFileServerSession, const TArray< CCnvCharacterSetConverter::SCharacterSet
> &aArrayOfCharacterSetsAvailable);
Allocates and constructs a localised list of character set encoding names.
|
|
static IMPORT_C CCnvCharacterSetNames *NewLC(RFs &aFileServerSession, const TArray< CCnvCharacterSetConverter::SCharacterSet
> &aArrayOfCharacterSetsAvailable);
Allocates and constructs a localised list of character set encoding names. Puts a pointer to the object on the cleanup stack.
|
|
virtual IMPORT_C ~CCnvCharacterSetNames();
Deletes the array of named plug-ins owned by the object prior to its destruction.
IMPORT_C TInt IndexOfIdentifier(TUint aIdentifier) const;
Gets the index into the sorted list of the character set identifier specified.
|
|
IMPORT_C TUint IdentifierAtIndex(TInt aIndex) const;
Gets the character set identifier at the specified index into the list.
|
|
private: virtual TInt MdcaCount() const;
Requirements
Returns the number of descriptor elements in a descriptor array.
|
private: virtual TPtrC MdcaPoint(TInt aIndex) const;
Requirements
Indexes into a descriptor array.
|
|