|
1 /* |
|
2 * Copyright (c) 2005 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: This file implements the SVGT proxy for resolving plugins |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "SVGProxy.h" |
|
20 #include <ecom.h> |
|
21 #include <implementationproxy.h> |
|
22 #include "SVGImageCodecUIDs.hrh" |
|
23 #include "SVGConvert.h" |
|
24 |
|
25 // ============================ MEMBER FUNCTIONS =============================== |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // CSvgDecodeConstruct::NewL |
|
29 // Static constructor. Returns the pointer to the CSvgDecodeConstruct |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 CSvgDecodeConstruct* CSvgDecodeConstruct::NewL() |
|
33 { |
|
34 CSvgDecodeConstruct* self = new (ELeave) CSvgDecodeConstruct; |
|
35 CleanupStack::PushL(self); |
|
36 self->ConstructL(); |
|
37 CleanupStack::Pop(self); |
|
38 return self; |
|
39 } |
|
40 |
|
41 // ----------------------------------------------------------------------------- |
|
42 // CSvgDecodeConstruct::NewPluginL |
|
43 // Creates a new concrete CImageDecoderPlugin object. |
|
44 // This is a pure virtual function that each derived class must implement. |
|
45 // ----------------------------------------------------------------------------- |
|
46 // |
|
47 CImageDecoderPlugin* CSvgDecodeConstruct::NewPluginL() const |
|
48 { |
|
49 return CSvgDecoder::NewL(); |
|
50 } |
|
51 |
|
52 // Exported proxy for instantiation method resolution |
|
53 // Define the Implementation UIDs for SVG decoder |
|
54 const TImplementationProxy ImplementationTable[] = |
|
55 { |
|
56 IMPLEMENTATION_PROXY_ENTRY(KSVGDecoderImplementationUidValue, CSvgDecodeConstruct::NewL) |
|
57 }; |
|
58 |
|
59 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) |
|
60 { |
|
61 aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); |
|
62 return ImplementationTable; |
|
63 } |