1.1 --- a/epoc32/include/convnames.h Tue Nov 24 13:55:44 2009 +0000
1.2 +++ b/epoc32/include/convnames.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -1,1 +1,78 @@
1.4 -convnames.h
1.5 +// Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +// All rights reserved.
1.7 +// This component and the accompanying materials are made available
1.8 +// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
1.9 +// which accompanies this distribution, and is available
1.10 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.11 +//
1.12 +// Initial Contributors:
1.13 +// Nokia Corporation - initial contribution.
1.14 +//
1.15 +// Contributors:
1.16 +//
1.17 +// Description:
1.18 +//
1.19 +
1.20 +#if !defined(__CONVNAMES_H__)
1.21 +#define __CONVNAMES_H__
1.22 +
1.23 +#if !defined(__E32STD_H__)
1.24 +#include <e32std.h>
1.25 +#endif
1.26 +
1.27 +#if !defined(__E32BASE_H__)
1.28 +#include <e32base.h>
1.29 +#endif
1.30 +
1.31 +#if !defined(__BAMDESCA_H__)
1.32 +#include <bamdesca.h>
1.33 +#endif
1.34 +
1.35 +#if !defined(__CHARCONV_H__)
1.36 +#include <charconv.h>
1.37 +#endif
1.38 +
1.39 +class RFs;
1.40 +class CBaNamedPlugins;
1.41 +
1.42 +
1.43 +class CCnvCharacterSetNames : public CBase, public MDesCArray
1.44 +/**
1.45 +A localised list of the names of non-Unicode character set encodings supported
1.46 +on the phone.
1.47 +
1.48 +For each character conversion plug-in DLL, there are one or more resource
1.49 +files which contain the name of the encoding translated into a different language.
1.50 +
1.51 +This class populates a list of the names of all encodings supported on the
1.52 +phone by reading the appropriate resource file for each one. The list is sorted
1.53 +according to the collation rules for the device's current locale.
1.54 +
1.55 +The virtual functions MdcaCount() (returns the number of items in the list)
1.56 +and MdcaPoint() (returns a TPtrC for the item at the given index) are implemented
1.57 +privately in this class. Users of this class can call them through the MDesCArray
1.58 +interface.
1.59 +@publishedAll
1.60 +@released
1.61 +*/
1.62 + {
1.63 +public:
1.64 + IMPORT_C static CCnvCharacterSetNames* NewL(RFs& aFileServerSession, const TArray<CCnvCharacterSetConverter::SCharacterSet>& aArrayOfCharacterSetsAvailable);
1.65 + IMPORT_C static CCnvCharacterSetNames* NewLC(RFs& aFileServerSession, const TArray<CCnvCharacterSetConverter::SCharacterSet>& aArrayOfCharacterSetsAvailable);
1.66 + IMPORT_C virtual ~CCnvCharacterSetNames();
1.67 + IMPORT_C TInt IndexOfIdentifier(TUint aIdentifier) const;
1.68 + IMPORT_C TUint IdentifierAtIndex(TInt aIndex) const;
1.69 +
1.70 +private:
1.71 + CCnvCharacterSetNames();
1.72 + void ConstructL(RFs& aFileServerSession, const TArray<CCnvCharacterSetConverter::SCharacterSet>& aArrayOfCharacterSetsAvailable);
1.73 + // from MDesCArray
1.74 + virtual TInt MdcaCount() const;
1.75 + virtual TPtrC MdcaPoint(TInt aIndex) const;
1.76 + static void DestroyResourceFileArray(TAny* aArrayOfCharconvResourceFiles);
1.77 +
1.78 +private:
1.79 + CBaNamedPlugins* iNamedPlugins;
1.80 + };
1.81 +
1.82 +#endif