|
1 // Copyright (c) 2001-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/icl_uids.hrh> |
|
19 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
20 #include <icl/icl_uids_const.hrh> |
|
21 #include <icl/icl_uids_def.hrh> |
|
22 #endif |
|
23 #include "WBMPCodec.h" |
|
24 |
|
25 #include <icl/imageconstruct.h> |
|
26 |
|
27 class CWbmpDecodeConstruct : public CImageDecodeConstruct |
|
28 { |
|
29 public: |
|
30 static CWbmpDecodeConstruct* NewL(); |
|
31 |
|
32 // from CImageDecodeConstruct |
|
33 CImageDecoderPlugin* NewPluginL() const; |
|
34 }; |
|
35 |
|
36 CWbmpDecodeConstruct* CWbmpDecodeConstruct::NewL() |
|
37 { |
|
38 CWbmpDecodeConstruct* self = new (ELeave) CWbmpDecodeConstruct; |
|
39 CleanupStack::PushL(self); |
|
40 self->ConstructL(); |
|
41 CleanupStack::Pop(self); |
|
42 return self; |
|
43 } |
|
44 |
|
45 CImageDecoderPlugin* CWbmpDecodeConstruct::NewPluginL() const |
|
46 { |
|
47 return CWbmpDecoder::NewL(); |
|
48 } |
|
49 |
|
50 // Exported proxy for instantiation method resolution |
|
51 |
|
52 // Define the Implementation UIDs for WBMP decoder |
|
53 const TImplementationProxy ImplementationTable[] = |
|
54 { |
|
55 IMPLEMENTATION_PROXY_ENTRY(KWBMPDecoderImplementationUidValue, CWbmpDecodeConstruct::NewL) |
|
56 }; |
|
57 |
|
58 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) |
|
59 { |
|
60 aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); |
|
61 return ImplementationTable; |
|
62 } |