sl@0: /* sl@0: * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * Implement the dummy charconv plugin CTIS1620aImplementation sl@0: * sl@0: */ sl@0: sl@0: sl@0: #include sl@0: #include sl@0: #include "shiftjis.h" sl@0: #include "tis1620.h" sl@0: sl@0: sl@0: const TDesC8& CTIS1620aImplementation::ReplacementForUnconvertibleUnicodeCharacters() sl@0: { sl@0: return CnvShiftJis::ReplacementForUnconvertibleUnicodeCharacters(); sl@0: } sl@0: sl@0: TInt CTIS1620aImplementation::ConvertFromUnicode(CCnvCharacterSetConverter::TEndianness /*aDefaultEndiannessOfForeignCharacters*/, sl@0: const TDesC8& /*aReplacementForUnconvertibleUnicodeCharacters*/, TDes8& /*aForeign*/, const TDesC16& /*aUnicode*/, sl@0: CCnvCharacterSetConverter::TArrayOfAscendingIndices& /*aIndicesOfUnconvertibleCharacters*/) sl@0: { sl@0: return 0; sl@0: } sl@0: sl@0: TInt CTIS1620aImplementation::ConvertToUnicode(CCnvCharacterSetConverter::TEndianness /*aDefaultEndiannessOfForeignCharacters*/, sl@0: TDes16& /*aUnicode*/, const TDesC8& /*aForeign*/, TInt&, TInt& /*aNumberOfUnconvertibleCharacters*/, TInt& /*aIndexOfFirstByteOfFirstUnconvertibleCharacter*/) sl@0: { sl@0: return 0; sl@0: } sl@0: sl@0: TBool CTIS1620aImplementation::IsInThisCharacterSetL(TBool& /*aSetToTrue*/, TInt& /*aConfidenceLevel*/, const TDesC8&) sl@0: { sl@0: return EFalse; sl@0: } sl@0: sl@0: CTIS1620aImplementation* CTIS1620aImplementation::NewL() sl@0: { sl@0: CTIS1620aImplementation* self = new (ELeave) CTIS1620aImplementation; sl@0: return self; sl@0: } sl@0: sl@0: sl@0: CTIS1620aImplementation::CTIS1620aImplementation() sl@0: { sl@0: //default constructor.. do nothing sl@0: } sl@0: sl@0: CTIS1620aImplementation::~ CTIS1620aImplementation() sl@0: { sl@0: //default destructor .. do nothing sl@0: } sl@0: sl@0: // THE FOLLOWING FROM ECOM CREATION FUNCTION sl@0: sl@0: const TImplementationProxy ImplementationTable[] = sl@0: { sl@0: IMPLEMENTATION_PROXY_ENTRY(KTIS1620aImplUid, CTIS1620aImplementation::NewL), sl@0: IMPLEMENTATION_PROXY_ENTRY(KTIS1620bImplUid, CTIS1620bImplementation::NewL) sl@0: }; sl@0: sl@0: EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) sl@0: { sl@0: aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); sl@0: sl@0: return ImplementationTable; sl@0: } sl@0: