|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include <ecom/ecom.h> |
|
17 #include <ecom/implementationproxy.h> |
|
18 #include <icl/imageconstruct.h> |
|
19 #include "fwexttestcodec.h" |
|
20 #include "fwexttestconvert.h" |
|
21 #include "TestUids.hrh" |
|
22 |
|
23 // Decoder construct declaration |
|
24 class CFwExtTestDecodeConstruct : public CImageDecodeConstruct |
|
25 { |
|
26 public: |
|
27 static CFwExtTestDecodeConstruct* NewL(); |
|
28 |
|
29 // from CImageDecodeConstruct |
|
30 CImageDecoderPlugin* NewPluginL() const; |
|
31 }; |
|
32 |
|
33 CFwExtTestDecodeConstruct* CFwExtTestDecodeConstruct::NewL() |
|
34 { |
|
35 CFwExtTestDecodeConstruct* self = new (ELeave) CFwExtTestDecodeConstruct(); |
|
36 CleanupStack::PushL(self); |
|
37 self->ConstructL(); |
|
38 CleanupStack::Pop(self); |
|
39 return self; |
|
40 } |
|
41 |
|
42 CImageDecoderPlugin* CFwExtTestDecodeConstruct::NewPluginL() const |
|
43 { |
|
44 return CFwExtTestDecoderPlugin::NewL(); |
|
45 } |
|
46 |
|
47 // Encoder construct declaration |
|
48 class CFwExtTestEncodeConstruct : public CImageEncodeConstruct |
|
49 { |
|
50 public: |
|
51 static CFwExtTestEncodeConstruct* NewL(); |
|
52 |
|
53 // from CImageEncodeConstruct |
|
54 CImageEncoderPlugin* NewPluginL() const; |
|
55 }; |
|
56 |
|
57 CFwExtTestEncodeConstruct* CFwExtTestEncodeConstruct::NewL() |
|
58 { |
|
59 CFwExtTestEncodeConstruct* self = new (ELeave) CFwExtTestEncodeConstruct(); |
|
60 CleanupStack::PushL(self); |
|
61 self->ConstructL(); |
|
62 CleanupStack::Pop(self); |
|
63 return self; |
|
64 } |
|
65 |
|
66 CImageEncoderPlugin* CFwExtTestEncodeConstruct::NewPluginL() const |
|
67 { |
|
68 return CFwExtTestEncoderPlugin::NewL(); |
|
69 } |
|
70 |
|
71 // Exported proxy for instantiation method resolution |
|
72 |
|
73 // Define the Implementation UIDs for fwtest codec |
|
74 const TImplementationProxy ImplementationTable[] = |
|
75 { |
|
76 IMPLEMENTATION_PROXY_ENTRY(KTestFwExtDecoderImplementationUidValue, CFwExtTestDecodeConstruct::NewL), |
|
77 IMPLEMENTATION_PROXY_ENTRY(KTestFwExtEncoderImplementationUidValue, CFwExtTestEncodeConstruct::NewL) |
|
78 }; |
|
79 |
|
80 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) |
|
81 { |
|
82 aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); |
|
83 return ImplementationTable; |
|
84 } |
|
85 |