|
1 /* |
|
2 * Copyright (c) 2010 Ixonos Plc. |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of the "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - Initial contribution |
|
11 * |
|
12 * Contributors: |
|
13 * Ixonos Plc |
|
14 * |
|
15 * Description: |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 |
|
21 #ifndef IMAGEEDITORREDEYEREDUCTIONPLUGIN_H |
|
22 #define IMAGEEDITORREDEYEREDUCTIONPLUGIN_H |
|
23 |
|
24 // INCLUDES |
|
25 #include "iepb.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class CEditorImage; |
|
29 class CCoeControl; |
|
30 class CSystemParameters; |
|
31 |
|
32 /* CLASS: CImageEditorRedEyeReductionPlugin |
|
33 * |
|
34 * CImageEditorRedEyeReductionPlugin represents red eye reduction |
|
35 * plug-in for Image Editor application. |
|
36 * |
|
37 */ |
|
38 class CImageEditorRedEyeReductionPlugin : public CImageEditorPluginBase |
|
39 { |
|
40 |
|
41 public: |
|
42 |
|
43 /** @name Methods:*/ |
|
44 //@{ |
|
45 |
|
46 /** Default constructor |
|
47 * |
|
48 * @param - |
|
49 * @return - |
|
50 */ |
|
51 CImageEditorRedEyeReductionPlugin (); |
|
52 |
|
53 /** Second phase constructor, may leave |
|
54 * |
|
55 * @param - |
|
56 * @return - |
|
57 */ |
|
58 virtual void ConstructL (); |
|
59 |
|
60 /** Destructor |
|
61 * |
|
62 * @param - |
|
63 * @return - |
|
64 */ |
|
65 virtual ~CImageEditorRedEyeReductionPlugin (); |
|
66 |
|
67 /* SetProperty |
|
68 * |
|
69 * @see CPluginBase |
|
70 */ |
|
71 virtual TInt SetProperty ( |
|
72 TInt aPropertyId, |
|
73 TDesC & aPropertyValue |
|
74 ); |
|
75 |
|
76 /* GetProperty |
|
77 * |
|
78 * @see CPluginBase |
|
79 */ |
|
80 virtual TInt GetProperty ( |
|
81 TInt aPropertyId, |
|
82 TDes & aPropertyValue |
|
83 ); |
|
84 |
|
85 /** InitPluginL |
|
86 * |
|
87 * @see CImageEditorPluginBase |
|
88 */ |
|
89 virtual TInt InitPluginL ( |
|
90 const TRect & aRect, |
|
91 CCoeControl * aParent, |
|
92 CCoeControl *& aPluginControl |
|
93 ); |
|
94 |
|
95 /** ProcessImageL |
|
96 * |
|
97 * @see CImageEditorPluginBase |
|
98 */ |
|
99 virtual void ProcessImageL (CEditorImage * aImage); |
|
100 |
|
101 /** ReleasePlugin |
|
102 * |
|
103 * @see CImageEditorPluginBase |
|
104 */ |
|
105 virtual void ReleasePlugin (); |
|
106 |
|
107 //@} |
|
108 |
|
109 protected: |
|
110 |
|
111 /** @name Methods:*/ |
|
112 //@{ |
|
113 |
|
114 //@} |
|
115 |
|
116 /** @name Members:*/ |
|
117 //@{ |
|
118 |
|
119 //@} |
|
120 |
|
121 private: |
|
122 |
|
123 /** @name Methods:*/ |
|
124 //@{ |
|
125 |
|
126 /** Copy constructor, disabled |
|
127 */ |
|
128 CImageEditorRedEyeReductionPlugin (const CImageEditorRedEyeReductionPlugin & rhs); |
|
129 |
|
130 /** Assignment operator, disabled |
|
131 */ |
|
132 CImageEditorRedEyeReductionPlugin & operator= (const CImageEditorRedEyeReductionPlugin & rhs); |
|
133 |
|
134 //@} |
|
135 |
|
136 /** @name Members:*/ |
|
137 //@{ |
|
138 /// Plug-in UI control |
|
139 CCoeControl * iControl; |
|
140 /// System parameters (width and height used) |
|
141 const CSystemParameters * iSysPars; |
|
142 |
|
143 //@} |
|
144 |
|
145 }; |
|
146 |
|
147 |
|
148 #endif |
|
149 |
|
150 // End of File |