|
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 // Licensed under US Patent No 4,558,302 and foreign counterparts |
|
15 // |
|
16 // |
|
17 |
|
18 |
|
19 #include <ecom/ecom.h> |
|
20 #include <ecom/implementationproxy.h> |
|
21 #include <icl/icl_uids.hrh> |
|
22 #include "GIFConvert.h" |
|
23 |
|
24 #include <icl/imageconstruct.h> |
|
25 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
26 #include <icl/icl_uids_const.hrh> |
|
27 #include <icl/icl_uids_def.hrh> |
|
28 #endif |
|
29 |
|
30 class CGifDecodeConstruct : public CImageDecodeConstruct |
|
31 { |
|
32 public: |
|
33 static CGifDecodeConstruct* NewL(); |
|
34 |
|
35 // from CImageDecodeConstruct |
|
36 CImageDecoderPlugin* NewPluginL() const; |
|
37 }; |
|
38 |
|
39 CGifDecodeConstruct* CGifDecodeConstruct::NewL() |
|
40 { |
|
41 CGifDecodeConstruct* self = new (ELeave) CGifDecodeConstruct; |
|
42 CleanupStack::PushL(self); |
|
43 self->ConstructL(); |
|
44 CleanupStack::Pop(self); |
|
45 return self; |
|
46 } |
|
47 |
|
48 CImageDecoderPlugin* CGifDecodeConstruct::NewPluginL() const |
|
49 { |
|
50 return CGifDecoder::NewL(); |
|
51 } |
|
52 |
|
53 class CGifEncodeConstruct : public CImageEncodeConstruct |
|
54 { |
|
55 public: |
|
56 static CGifEncodeConstruct* NewL(); |
|
57 |
|
58 // from CImageEncodeConstruct |
|
59 CImageEncoderPlugin* NewPluginL() const; |
|
60 }; |
|
61 |
|
62 CGifEncodeConstruct* CGifEncodeConstruct::NewL() |
|
63 { |
|
64 CGifEncodeConstruct* self = new (ELeave) CGifEncodeConstruct; |
|
65 CleanupStack::PushL(self); |
|
66 self->ConstructL(); |
|
67 CleanupStack::Pop(self); |
|
68 return self; |
|
69 } |
|
70 |
|
71 CImageEncoderPlugin* CGifEncodeConstruct::NewPluginL() const |
|
72 { |
|
73 return CGifEncoder::NewL(); |
|
74 } |
|
75 |
|
76 |
|
77 // Exported proxy for instantiation method resolution |
|
78 |
|
79 // Define the Implementation UIDs for GIF decoder |
|
80 const TImplementationProxy ImplementationTable[] = |
|
81 { |
|
82 IMPLEMENTATION_PROXY_ENTRY(KGIFDecoderImplementationUidValue, CGifDecodeConstruct::NewL), |
|
83 IMPLEMENTATION_PROXY_ENTRY(KGIFEncoderImplementationUidValue, CGifEncodeConstruct::NewL) |
|
84 }; |
|
85 |
|
86 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) |
|
87 { |
|
88 aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); |
|
89 return ImplementationTable; |
|
90 } |