|
1 /* |
|
2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * Implement the dummy charconv plugin CTIS1620aImplementation |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #include <convgeneratedcpp.h> |
|
21 #include <ecom/implementationproxy.h> |
|
22 #include "shiftjis.h" |
|
23 #include "tis1620.h" |
|
24 |
|
25 |
|
26 const TDesC8& CTIS1620aImplementation::ReplacementForUnconvertibleUnicodeCharacters() |
|
27 { |
|
28 return CnvShiftJis::ReplacementForUnconvertibleUnicodeCharacters(); |
|
29 } |
|
30 |
|
31 TInt CTIS1620aImplementation::ConvertFromUnicode(CCnvCharacterSetConverter::TEndianness /*aDefaultEndiannessOfForeignCharacters*/, |
|
32 const TDesC8& /*aReplacementForUnconvertibleUnicodeCharacters*/, TDes8& /*aForeign*/, const TDesC16& /*aUnicode*/, |
|
33 CCnvCharacterSetConverter::TArrayOfAscendingIndices& /*aIndicesOfUnconvertibleCharacters*/) |
|
34 { |
|
35 return 0; |
|
36 } |
|
37 |
|
38 TInt CTIS1620aImplementation::ConvertToUnicode(CCnvCharacterSetConverter::TEndianness /*aDefaultEndiannessOfForeignCharacters*/, |
|
39 TDes16& /*aUnicode*/, const TDesC8& /*aForeign*/, TInt&, TInt& /*aNumberOfUnconvertibleCharacters*/, TInt& /*aIndexOfFirstByteOfFirstUnconvertibleCharacter*/) |
|
40 { |
|
41 return 0; |
|
42 } |
|
43 |
|
44 TBool CTIS1620aImplementation::IsInThisCharacterSetL(TBool& /*aSetToTrue*/, TInt& /*aConfidenceLevel*/, const TDesC8&) |
|
45 { |
|
46 return EFalse; |
|
47 } |
|
48 |
|
49 CTIS1620aImplementation* CTIS1620aImplementation::NewL() |
|
50 { |
|
51 CTIS1620aImplementation* self = new (ELeave) CTIS1620aImplementation; |
|
52 return self; |
|
53 } |
|
54 |
|
55 |
|
56 CTIS1620aImplementation::CTIS1620aImplementation() |
|
57 { |
|
58 //default constructor.. do nothing |
|
59 } |
|
60 |
|
61 CTIS1620aImplementation::~ CTIS1620aImplementation() |
|
62 { |
|
63 //default destructor .. do nothing |
|
64 } |
|
65 |
|
66 // THE FOLLOWING FROM ECOM CREATION FUNCTION |
|
67 |
|
68 const TImplementationProxy ImplementationTable[] = |
|
69 { |
|
70 IMPLEMENTATION_PROXY_ENTRY(KTIS1620aImplUid, CTIS1620aImplementation::NewL), |
|
71 IMPLEMENTATION_PROXY_ENTRY(KTIS1620bImplUid, CTIS1620bImplementation::NewL) |
|
72 }; |
|
73 |
|
74 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) |
|
75 { |
|
76 aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); |
|
77 |
|
78 return ImplementationTable; |
|
79 } |
|
80 |