2 * Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #if !defined(__CONVNAMES_H__)
20 #define __CONVNAMES_H__
22 #if !defined(__E32STD_H__)
26 #if !defined(__E32BASE_H__)
30 #if !defined(__BAMDESCA_H__)
34 #if !defined(__CHARCONV_H__)
39 class CBaNamedPlugins;
42 class CCnvCharacterSetNames : public CBase, public MDesCArray
44 A localised list of the names of non-Unicode character set encodings supported
47 For each character conversion plug-in DLL, there are one or more resource
48 files which contain the name of the encoding translated into a different language.
50 This class populates a list of the names of all encodings supported on the
51 phone by reading the appropriate resource file for each one. The list is sorted
52 according to the collation rules for the device's current locale.
54 The virtual functions MdcaCount() (returns the number of items in the list)
55 and MdcaPoint() (returns a TPtrC for the item at the given index) are implemented
56 privately in this class. Users of this class can call them through the MDesCArray
63 IMPORT_C static CCnvCharacterSetNames* NewL(RFs& aFileServerSession, const TArray<CCnvCharacterSetConverter::SCharacterSet>& aArrayOfCharacterSetsAvailable);
64 IMPORT_C static CCnvCharacterSetNames* NewLC(RFs& aFileServerSession, const TArray<CCnvCharacterSetConverter::SCharacterSet>& aArrayOfCharacterSetsAvailable);
65 IMPORT_C virtual ~CCnvCharacterSetNames();
66 IMPORT_C TInt IndexOfIdentifier(TUint aIdentifier) const;
67 IMPORT_C TUint IdentifierAtIndex(TInt aIndex) const;
70 CCnvCharacterSetNames();
71 void ConstructL(RFs& aFileServerSession, const TArray<CCnvCharacterSetConverter::SCharacterSet>& aArrayOfCharacterSetsAvailable);
73 virtual TInt MdcaCount() const;
74 virtual TPtrC MdcaPoint(TInt aIndex) const;
75 static void DestroyResourceFileArray(TAny* aArrayOfCharconvResourceFiles);
78 CBaNamedPlugins* iNamedPlugins;