|
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 IMAGEEDITORCONTRASTPLUGIN_H |
|
22 #define IMAGEEDITORCONTRASTPLUGIN_H |
|
23 |
|
24 // INCLUDES |
|
25 #include "ImageEditorPluginBaseDefs.h" |
|
26 #include "iepb.h" |
|
27 #include "SingleParamControlObserver.h" |
|
28 |
|
29 |
|
30 // FORWARD DECLARATIONS |
|
31 class CEditorImage; |
|
32 class CCoeControl; |
|
33 |
|
34 |
|
35 /* CLASS: CImageEditorContrastPlugin |
|
36 * |
|
37 * CImageEditorBrightnessPlugin represents contrast adjustment plug-in for |
|
38 * Image Editor application. |
|
39 * |
|
40 */ |
|
41 class CImageEditorContrastPlugin : public CImageEditorPluginBase, |
|
42 public MSingleParControlObserver |
|
43 { |
|
44 |
|
45 public: |
|
46 |
|
47 /** @name Methods:*/ |
|
48 //@{ |
|
49 |
|
50 /** Default constructor |
|
51 * |
|
52 * @param - |
|
53 * @return - |
|
54 */ |
|
55 CImageEditorContrastPlugin (); |
|
56 |
|
57 /** Second phase constructor, may leave |
|
58 * |
|
59 * @param - |
|
60 * @return - |
|
61 */ |
|
62 virtual void ConstructL (); |
|
63 |
|
64 /** Destructor |
|
65 * |
|
66 * @param - |
|
67 * @return - |
|
68 */ |
|
69 virtual ~CImageEditorContrastPlugin (); |
|
70 |
|
71 /* SetProperty |
|
72 * |
|
73 * @see CPluginBase |
|
74 */ |
|
75 virtual TInt SetProperty ( |
|
76 TInt aPropertyId, |
|
77 TDesC & aPropertyValue |
|
78 ); |
|
79 |
|
80 /* GetProperty |
|
81 * |
|
82 * @see CPluginBase |
|
83 */ |
|
84 virtual TInt GetProperty ( |
|
85 TInt aPropertyId, |
|
86 TDes & aPropertyValue |
|
87 ); |
|
88 |
|
89 /** InitPluginL |
|
90 * |
|
91 * @see CImageEditorPluginBase |
|
92 */ |
|
93 virtual TInt InitPluginL ( |
|
94 const TRect & aRect, |
|
95 CCoeControl * aParent, |
|
96 CCoeControl *& aPluginControl |
|
97 ); |
|
98 |
|
99 /** ProcessImageL |
|
100 * |
|
101 * @see CImageEditorPluginBase |
|
102 */ |
|
103 virtual void ProcessImageL (CEditorImage * aImage); |
|
104 |
|
105 /** ReleasePlugin |
|
106 * |
|
107 * @see CImageEditorPluginBase |
|
108 */ |
|
109 virtual void ReleasePlugin (); |
|
110 |
|
111 /** ParamOperation |
|
112 * |
|
113 * @see MSingleParControlObserver |
|
114 */ |
|
115 virtual void ParamOperation (const TParamOperation aOperation); |
|
116 |
|
117 /** GetParam |
|
118 * |
|
119 * @see MSingleParControlObserver |
|
120 */ |
|
121 virtual TReal GetParam() const; |
|
122 |
|
123 //@} |
|
124 |
|
125 protected: |
|
126 |
|
127 /** @name Methods:*/ |
|
128 //@{ |
|
129 |
|
130 //@} |
|
131 |
|
132 /** @name Members:*/ |
|
133 //@{ |
|
134 |
|
135 //@} |
|
136 |
|
137 private: |
|
138 |
|
139 /** @name Methods:*/ |
|
140 //@{ |
|
141 |
|
142 /** Copy constructor, disabled |
|
143 */ |
|
144 CImageEditorContrastPlugin (const CImageEditorContrastPlugin & rhs); |
|
145 |
|
146 /** Assignment operator, disabled |
|
147 */ |
|
148 CImageEditorContrastPlugin & operator= (const CImageEditorContrastPlugin & rhs); |
|
149 |
|
150 //@} |
|
151 |
|
152 /** @name Members:*/ |
|
153 //@{ |
|
154 /// Plug-in UI control |
|
155 CCoeControl * iControl; |
|
156 /// Contrast parameter |
|
157 TInt iContrast; |
|
158 //@} |
|
159 |
|
160 }; |
|
161 |
|
162 |
|
163 #endif |
|
164 |
|
165 // End of File |