|
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 #include "BMPConvert.h" |
|
20 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
21 #include <icl/icl_uids_const.hrh> |
|
22 #include <icl/icl_uids_def.hrh> |
|
23 #endif |
|
24 |
|
25 #include <icl/imageconstruct.h> |
|
26 |
|
27 class CBmpDecodeConstruct : public CImageDecodeConstruct |
|
28 { |
|
29 public: |
|
30 static CBmpDecodeConstruct* NewL(); |
|
31 |
|
32 // from CImageDecodeConstruct |
|
33 CImageDecoderPlugin* NewPluginL() const; |
|
34 }; |
|
35 |
|
36 CBmpDecodeConstruct* CBmpDecodeConstruct::NewL() |
|
37 { |
|
38 CBmpDecodeConstruct* self = new (ELeave) CBmpDecodeConstruct; |
|
39 CleanupStack::PushL(self); |
|
40 self->ConstructL(); |
|
41 CleanupStack::Pop(self); |
|
42 return self; |
|
43 } |
|
44 |
|
45 CImageDecoderPlugin* CBmpDecodeConstruct::NewPluginL() const |
|
46 { |
|
47 return CBmpDecoder::NewL(); |
|
48 } |
|
49 |
|
50 class CBmpEncodeConstruct : public CImageEncodeConstruct |
|
51 { |
|
52 public: |
|
53 static CBmpEncodeConstruct* NewL(); |
|
54 |
|
55 // from CImageEncodeConstruct |
|
56 CImageEncoderPlugin* NewPluginL() const; |
|
57 }; |
|
58 |
|
59 CBmpEncodeConstruct* CBmpEncodeConstruct::NewL() |
|
60 { |
|
61 CBmpEncodeConstruct* self = new (ELeave) CBmpEncodeConstruct; |
|
62 CleanupStack::PushL(self); |
|
63 self->ConstructL(); |
|
64 CleanupStack::Pop(self); |
|
65 return self; |
|
66 } |
|
67 |
|
68 CImageEncoderPlugin* CBmpEncodeConstruct::NewPluginL() const |
|
69 { |
|
70 return CBmpEncoder::NewL(); |
|
71 } |
|
72 |
|
73 |
|
74 |
|
75 // Exported proxy for instantiation method resolution |
|
76 |
|
77 // Define the Implementation UIDs for BMP decoder |
|
78 const TImplementationProxy ImplementationTable[] = |
|
79 { |
|
80 IMPLEMENTATION_PROXY_ENTRY(KBMPDecoderImplementationUidValue, CBmpDecodeConstruct::NewL), |
|
81 IMPLEMENTATION_PROXY_ENTRY(KBMPEncoderImplementationUidValue, CBmpEncodeConstruct::NewL) |
|
82 }; |
|
83 |
|
84 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) |
|
85 { |
|
86 aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); |
|
87 return ImplementationTable; |
|
88 } |