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