epoc32/include/convnames.h
author William Roberts <williamr@symbian.org>
Wed, 31 Mar 2010 12:33:34 +0100
branchSymbian3
changeset 4 837f303aceeb
parent 2 2fe1408b6811
permissions -rw-r--r--
Current Symbian^3 public API header files (from PDK 3.0.h)
This is the epoc32/include tree with the "platform" subtrees removed, and
all but a selected few mbg and rsg files removed.
williamr@4
     1
/*
williamr@4
     2
* Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
williamr@4
     3
* All rights reserved.
williamr@4
     4
* This component and the accompanying materials are made available
williamr@4
     5
* under the terms of "Eclipse Public License v1.0"
williamr@4
     6
* which accompanies this distribution, and is available
williamr@4
     7
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
williamr@4
     8
*
williamr@4
     9
* Initial Contributors:
williamr@4
    10
* Nokia Corporation - initial contribution.
williamr@4
    11
*
williamr@4
    12
* Contributors:
williamr@4
    13
*
williamr@4
    14
* Description: 
williamr@4
    15
*
williamr@4
    16
*/
williamr@4
    17
williamr@2
    18
williamr@2
    19
#if !defined(__CONVNAMES_H__)
williamr@2
    20
#define __CONVNAMES_H__
williamr@2
    21
williamr@2
    22
#if !defined(__E32STD_H__)
williamr@2
    23
#include <e32std.h>
williamr@2
    24
#endif
williamr@2
    25
williamr@2
    26
#if !defined(__E32BASE_H__)
williamr@2
    27
#include <e32base.h>
williamr@2
    28
#endif
williamr@2
    29
williamr@2
    30
#if !defined(__BAMDESCA_H__)
williamr@2
    31
#include <bamdesca.h>
williamr@2
    32
#endif 
williamr@2
    33
williamr@2
    34
#if !defined(__CHARCONV_H__)
williamr@2
    35
#include <charconv.h>
williamr@2
    36
#endif
williamr@2
    37
williamr@2
    38
class RFs;
williamr@2
    39
class CBaNamedPlugins;
williamr@2
    40
williamr@2
    41
 
williamr@2
    42
class CCnvCharacterSetNames : public CBase, public MDesCArray
williamr@2
    43
/** 
williamr@2
    44
A localised list of the names of non-Unicode character set encodings supported 
williamr@2
    45
on the phone.
williamr@2
    46
williamr@2
    47
For each character conversion plug-in DLL, there are one or more resource 
williamr@2
    48
files which contain the name of the encoding translated into a different language.
williamr@2
    49
williamr@2
    50
This class populates a list of the names of all encodings supported on the 
williamr@2
    51
phone by reading the appropriate resource file for each one. The list is sorted 
williamr@2
    52
according to the collation rules for the device's current locale.
williamr@2
    53
williamr@2
    54
The virtual functions MdcaCount() (returns the number of items in the list) 
williamr@2
    55
and MdcaPoint() (returns a TPtrC for the item at the given index) are implemented 
williamr@2
    56
privately in this class. Users of this class can call them through the MDesCArray 
williamr@2
    57
interface. 
williamr@2
    58
@publishedAll
williamr@2
    59
@released
williamr@2
    60
*/
williamr@2
    61
	{
williamr@2
    62
public:
williamr@2
    63
	IMPORT_C static CCnvCharacterSetNames* NewL(RFs& aFileServerSession, const TArray<CCnvCharacterSetConverter::SCharacterSet>& aArrayOfCharacterSetsAvailable);
williamr@2
    64
	IMPORT_C static CCnvCharacterSetNames* NewLC(RFs& aFileServerSession, const TArray<CCnvCharacterSetConverter::SCharacterSet>& aArrayOfCharacterSetsAvailable);
williamr@2
    65
	IMPORT_C virtual ~CCnvCharacterSetNames();
williamr@2
    66
	IMPORT_C TInt IndexOfIdentifier(TUint aIdentifier) const;
williamr@2
    67
	IMPORT_C TUint IdentifierAtIndex(TInt aIndex) const;
williamr@2
    68
williamr@2
    69
private:
williamr@2
    70
	CCnvCharacterSetNames();
williamr@2
    71
	void ConstructL(RFs& aFileServerSession, const TArray<CCnvCharacterSetConverter::SCharacterSet>& aArrayOfCharacterSetsAvailable);
williamr@2
    72
	// from MDesCArray
williamr@2
    73
	virtual TInt MdcaCount() const;
williamr@2
    74
	virtual TPtrC MdcaPoint(TInt aIndex) const;
williamr@2
    75
	static void DestroyResourceFileArray(TAny* aArrayOfCharconvResourceFiles);
williamr@2
    76
williamr@2
    77
private:
williamr@2
    78
	CBaNamedPlugins* iNamedPlugins;
williamr@2
    79
	};
williamr@2
    80
williamr@2
    81
#endif
williamr@4
    82