|
1 // Copyright (c) 1999-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 #ifndef __EXTENDED_PLUGIN_H__ |
|
17 #define __EXTENDED_PLUGIN_H__ |
|
18 |
|
19 #include <imageconversion.h> |
|
20 #include <icl/imageplugin.h> |
|
21 |
|
22 class CExtendedDecoder : public CImageDecoder |
|
23 { |
|
24 public: |
|
25 IMPORT_C static CExtendedDecoder* NewL(); |
|
26 |
|
27 IMPORT_C TInt SyncResult() const; |
|
28 IMPORT_C TInt AsyncResult() const; |
|
29 IMPORT_C TBool DoCustomAsync() const; |
|
30 |
|
31 IMPORT_C void CustomSyncL(TInt aParam); |
|
32 IMPORT_C void CustomAsync(TRequestStatus* aRequestStatus, TInt aParam); |
|
33 IMPORT_C TBool UsingThread() const; |
|
34 protected: |
|
35 CExtendedDecoder(); |
|
36 }; |
|
37 |
|
38 class CExtendedDecoderPlugin : public CImageDecoderPlugin |
|
39 { |
|
40 public: |
|
41 IMPORT_C TBool UsingThread() const; |
|
42 |
|
43 protected: |
|
44 //Frome CImageDecoderPlugin |
|
45 IMPORT_C virtual void DoConvert(); |
|
46 IMPORT_C virtual void HandleCustomSyncL(TInt aParam); |
|
47 IMPORT_C virtual void InitCustomAsyncL(TInt aParam); |
|
48 IMPORT_C virtual void NotifyComplete(); |
|
49 |
|
50 public: |
|
51 TInt iSyncResult; |
|
52 TInt iAsyncResult; |
|
53 TBool iDoCustomAsync; |
|
54 }; |
|
55 |
|
56 class CExtendedEncoder : public CImageEncoder |
|
57 { |
|
58 public: |
|
59 IMPORT_C static CExtendedEncoder* NewL(); |
|
60 |
|
61 IMPORT_C TInt SyncResult() const; |
|
62 IMPORT_C TInt AsyncResult() const; |
|
63 IMPORT_C TBool DoCustomAsync() const; |
|
64 IMPORT_C TBool UsingThread() const; |
|
65 |
|
66 IMPORT_C void CustomSyncL(TInt aParam); |
|
67 IMPORT_C void CustomAsync(TRequestStatus* aRequestStatus, TInt aParam); |
|
68 protected: |
|
69 CExtendedEncoder(); |
|
70 }; |
|
71 |
|
72 class CExtendedEncoderPlugin : public CImageEncoderPlugin |
|
73 { |
|
74 public: |
|
75 IMPORT_C TBool UsingThread() const; |
|
76 |
|
77 protected: |
|
78 //Frome CImageEncoderPlugin |
|
79 IMPORT_C virtual void DoConvert(); |
|
80 IMPORT_C virtual void HandleCustomSyncL(TInt aParam); |
|
81 IMPORT_C virtual void InitCustomAsyncL(TInt aParam); |
|
82 IMPORT_C virtual void NotifyComplete(); |
|
83 |
|
84 public: |
|
85 TInt iSyncResult; |
|
86 TInt iAsyncResult; |
|
87 TBool iDoCustomAsync; |
|
88 }; |
|
89 |
|
90 #endif // __EXTENDED_PLUGIN_H__ |
|
91 |