Update contrib.
2 * Copyright (c) 2003 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.
25 #include <convgeneratedcpp.h>
26 #include <ecom/implementationproxy.h>
27 #include "charactersetconverter.h"
28 // New Interface class
29 class CTIS620Implementation : public CCharacterSetConverterPluginInterface
32 virtual const TDesC8& ReplacementForUnconvertibleUnicodeCharacters();
34 virtual TInt ConvertFromUnicode(
35 CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters,
36 const TDesC8& aReplacementForUnconvertibleUnicodeCharacters,
38 const TDesC16& aUnicode,
39 CCnvCharacterSetConverter::TArrayOfAscendingIndices& aIndicesOfUnconvertibleCharacters );
41 virtual TInt ConvertToUnicode(
42 CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters,
44 const TDesC8& aForeign,
46 TInt& aNumberOfUnconvertibleCharacters,
47 TInt& aIndexOfFirstByteOfFirstUnconvertibleCharacter );
49 virtual TBool IsInThisCharacterSetL(
51 TInt& aConfidenceLevel,
54 static CTIS620Implementation* NewL();
56 virtual ~CTIS620Implementation();
58 CTIS620Implementation();
61 // FUNCTION DEFINITIONS
62 const TDesC8& CTIS620Implementation::ReplacementForUnconvertibleUnicodeCharacters()
64 return ReplacementForUnconvertibleUnicodeCharacters_internal();
67 TInt CTIS620Implementation::ConvertFromUnicode(
68 CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters,
69 const TDesC8& aReplacementForUnconvertibleUnicodeCharacters,
71 const TDesC16& aUnicode,
72 CCnvCharacterSetConverter::TArrayOfAscendingIndices& aIndicesOfUnconvertibleCharacters)
74 return CCnvCharacterSetConverter::DoConvertFromUnicode(conversionData, aDefaultEndiannessOfForeignCharacters, aReplacementForUnconvertibleUnicodeCharacters, aForeign, aUnicode, aIndicesOfUnconvertibleCharacters);
77 TInt CTIS620Implementation::ConvertToUnicode(
78 CCnvCharacterSetConverter::TEndianness aDefaultEndiannessOfForeignCharacters,
80 const TDesC8& aForeign,
82 TInt& aNumberOfUnconvertibleCharacters,
83 TInt& aIndexOfFirstByteOfFirstUnconvertibleCharacter)
85 return CCnvCharacterSetConverter::DoConvertToUnicode(conversionData, aDefaultEndiannessOfForeignCharacters, aUnicode, aForeign, aNumberOfUnconvertibleCharacters, aIndexOfFirstByteOfFirstUnconvertibleCharacter);
89 TBool CTIS620Implementation::IsInThisCharacterSetL(
91 TInt& aConfidenceLevel,
99 CTIS620Implementation* CTIS620Implementation::NewL()
101 CTIS620Implementation* self = new(ELeave) CTIS620Implementation;
105 CTIS620Implementation::CTIS620Implementation()
107 //default constructor.. do nothing
110 CTIS620Implementation::~CTIS620Implementation()
112 //default destructor .. do nothing
115 // ECOM CREATION FUNCTION
116 const TImplementationProxy ImplementationTable[] =
118 // Note: This is the same UID as defined in old mmp-file
119 // Used also in 12221212.rss ( implementation_uid )
120 IMPLEMENTATION_PROXY_ENTRY( 0x101F8549, CTIS620Implementation::NewL )
123 EXPORT_C const TImplementationProxy* ImplementationGroupProxy( TInt& aTableCount )
125 aTableCount = sizeof( ImplementationTable ) / sizeof(TImplementationProxy);
126 return ImplementationTable;