1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/textandloc/charconvfw/charconvplugins/test/rtest/tsrc/plugins/tis1620a.cpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,80 @@
1.4 +/*
1.5 +* Copyright (c) 2006-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 "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.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 +* Implement the dummy charconv plugin CTIS1620aImplementation
1.19 +*
1.20 +*/
1.21 +
1.22 +
1.23 +#include <convgeneratedcpp.h>
1.24 +#include <ecom/implementationproxy.h>
1.25 +#include "shiftjis.h"
1.26 +#include "tis1620.h"
1.27 +
1.28 +
1.29 +const TDesC8& CTIS1620aImplementation::ReplacementForUnconvertibleUnicodeCharacters()
1.30 +{
1.31 + return CnvShiftJis::ReplacementForUnconvertibleUnicodeCharacters();
1.32 +}
1.33 +
1.34 +TInt CTIS1620aImplementation::ConvertFromUnicode(CCnvCharacterSetConverter::TEndianness /*aDefaultEndiannessOfForeignCharacters*/,
1.35 + const TDesC8& /*aReplacementForUnconvertibleUnicodeCharacters*/, TDes8& /*aForeign*/, const TDesC16& /*aUnicode*/,
1.36 +CCnvCharacterSetConverter::TArrayOfAscendingIndices& /*aIndicesOfUnconvertibleCharacters*/)
1.37 +{
1.38 + return 0;
1.39 +}
1.40 +
1.41 +TInt CTIS1620aImplementation::ConvertToUnicode(CCnvCharacterSetConverter::TEndianness /*aDefaultEndiannessOfForeignCharacters*/,
1.42 + TDes16& /*aUnicode*/, const TDesC8& /*aForeign*/, TInt&, TInt& /*aNumberOfUnconvertibleCharacters*/, TInt& /*aIndexOfFirstByteOfFirstUnconvertibleCharacter*/)
1.43 +{
1.44 + return 0;
1.45 +}
1.46 +
1.47 +TBool CTIS1620aImplementation::IsInThisCharacterSetL(TBool& /*aSetToTrue*/, TInt& /*aConfidenceLevel*/, const TDesC8&)
1.48 +{
1.49 + return EFalse;
1.50 +}
1.51 +
1.52 +CTIS1620aImplementation* CTIS1620aImplementation::NewL()
1.53 +{
1.54 +CTIS1620aImplementation* self = new (ELeave) CTIS1620aImplementation;
1.55 +return self;
1.56 +}
1.57 +
1.58 +
1.59 +CTIS1620aImplementation::CTIS1620aImplementation()
1.60 +{
1.61 +//default constructor.. do nothing
1.62 +}
1.63 +
1.64 +CTIS1620aImplementation::~ CTIS1620aImplementation()
1.65 +{
1.66 +//default destructor .. do nothing
1.67 +}
1.68 +
1.69 +// THE FOLLOWING FROM ECOM CREATION FUNCTION
1.70 +
1.71 +const TImplementationProxy ImplementationTable[] =
1.72 + {
1.73 + IMPLEMENTATION_PROXY_ENTRY(KTIS1620aImplUid, CTIS1620aImplementation::NewL),
1.74 + IMPLEMENTATION_PROXY_ENTRY(KTIS1620bImplUid, CTIS1620bImplementation::NewL)
1.75 + };
1.76 +
1.77 +EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount)
1.78 + {
1.79 + aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy);
1.80 +
1.81 + return ImplementationTable;
1.82 + }
1.83 +