textandloc_pub/character_conversion_api/inc/CONVNAMES.H
changeset 0 1fb32624e06b
child 16 56cd22a7a1cb
equal deleted inserted replaced
-1:000000000000 0:1fb32624e06b
       
     1 /*
       
     2 * Copyright (c) 2000 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     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".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: 
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #if !defined(__CONVNAMES_H__)
       
    21 #define __CONVNAMES_H__
       
    22 
       
    23 #if !defined(__E32STD_H__)
       
    24 #include <e32std.h>
       
    25 #endif
       
    26 
       
    27 #if !defined(__E32BASE_H__)
       
    28 #include <e32base.h>
       
    29 #endif
       
    30 
       
    31 #if !defined(__BAMDESCA_H__)
       
    32 #include <bamdesca.h>
       
    33 #endif 
       
    34 
       
    35 #if !defined(__CHARCONV_H__)
       
    36 #include <charconv.h>
       
    37 #endif
       
    38 
       
    39 class RFs;
       
    40 class CBaNamedPlugins;
       
    41 
       
    42  
       
    43 class CCnvCharacterSetNames : public CBase, public MDesCArray
       
    44 /** 
       
    45 A localised list of the names of non-Unicode character set encodings supported 
       
    46 on the phone.
       
    47 
       
    48 For each character conversion plug-in DLL, there are one or more resource 
       
    49 files which contain the name of the encoding translated into a different language.
       
    50 
       
    51 This class populates a list of the names of all encodings supported on the 
       
    52 phone by reading the appropriate resource file for each one. The list is sorted 
       
    53 according to the collation rules for the device's current locale.
       
    54 
       
    55 The virtual functions MdcaCount() (returns the number of items in the list) 
       
    56 and MdcaPoint() (returns a TPtrC for the item at the given index) are implemented 
       
    57 privately in this class. Users of this class can call them through the MDesCArray 
       
    58 interface. 
       
    59 @publishedAll
       
    60 @released
       
    61 */
       
    62 	{
       
    63 public:
       
    64 	IMPORT_C static CCnvCharacterSetNames* NewL(RFs& aFileServerSession, const TArray<CCnvCharacterSetConverter::SCharacterSet>& aArrayOfCharacterSetsAvailable);
       
    65 	IMPORT_C static CCnvCharacterSetNames* NewLC(RFs& aFileServerSession, const TArray<CCnvCharacterSetConverter::SCharacterSet>& aArrayOfCharacterSetsAvailable);
       
    66 	IMPORT_C virtual ~CCnvCharacterSetNames();
       
    67 	IMPORT_C TInt IndexOfIdentifier(TUint aIdentifier) const;
       
    68 	IMPORT_C TUint IdentifierAtIndex(TInt aIndex) const;
       
    69 
       
    70 private:
       
    71 	CCnvCharacterSetNames();
       
    72 	void ConstructL(RFs& aFileServerSession, const TArray<CCnvCharacterSetConverter::SCharacterSet>& aArrayOfCharacterSetsAvailable);
       
    73 	// from MDesCArray
       
    74 	virtual TInt MdcaCount() const;
       
    75 	virtual TPtrC MdcaPoint(TInt aIndex) const;
       
    76 	static void DestroyResourceFileArray(TAny* aArrayOfCharconvResourceFiles);
       
    77 
       
    78 private:
       
    79 	CBaNamedPlugins* iNamedPlugins;
       
    80 	};
       
    81 
       
    82 #endif
       
    83