imageeditor/plugins/SepiaPlugin/inc/ImageEditorSepiaPlugin.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 IMAGEEDITORSEPIAPLUGIN_H
       
    21 #define IMAGEEDITORSEPIAPLUGIN_H
       
    22 
       
    23 //	INCLUDES
       
    24 #include "ImageEditorPluginBaseDefs.h"
       
    25 #include "iepb.h"
       
    26 
       
    27 //  FORWARD DECLARATIONS
       
    28 class CEditorImage;
       
    29 class CPluginParameters;
       
    30 
       
    31 
       
    32 /*	CLASS:	CImageEditorSepiaPlugin
       
    33 *
       
    34 *	CImageEditorSepiaPlugin represents Sepia color conversion plug-in
       
    35 *	for Image Editor application.
       
    36 */
       
    37 class CImageEditorSepiaPlugin :	public CImageEditorPluginBase
       
    38 {
       
    39 
       
    40 public:
       
    41 
       
    42 /** @name Methods:*/
       
    43 //@{
       
    44 
       
    45 	/** Default constructor
       
    46 	*
       
    47 	*	@param -
       
    48 	*	@return -
       
    49 	*/
       
    50 	CImageEditorSepiaPlugin ();
       
    51 
       
    52 	/** Second phase constructor, may leave
       
    53 	*
       
    54 	*	@param -
       
    55 	*	@return -
       
    56 	*/
       
    57 	virtual void ConstructL ();
       
    58 
       
    59 	/** Destructor
       
    60 	*
       
    61 	*	@param -
       
    62 	*	@return -
       
    63 	*/
       
    64 	virtual ~CImageEditorSepiaPlugin ();
       
    65 
       
    66 	/*	SetProperty
       
    67 	*
       
    68 	*   @see CPluginBase
       
    69 	*/
       
    70 	virtual TInt SetProperty (
       
    71 		TInt		aPropertyId, 
       
    72 		TDesC &		aPropertyValue
       
    73 		);
       
    74 
       
    75 	/*	GetProperty
       
    76 	*
       
    77 	*   @see CPluginBase
       
    78 	*/
       
    79 	virtual TInt GetProperty (
       
    80 		TInt		aPropertyId, 
       
    81 		TDes &		aPropertyValue
       
    82 		);
       
    83 
       
    84     /**	InitPluginL
       
    85 	*
       
    86 	*	@see CImageEditorPluginBase
       
    87     */
       
    88     virtual TInt InitPluginL (
       
    89 		const TRect &		aRect,
       
    90 		CCoeControl *		aParent,
       
    91 		CCoeControl *&		aPluginControl
       
    92 		);
       
    93 
       
    94     /**	ProcessImageL
       
    95 	*
       
    96 	*	@see CImageEditorPluginBase
       
    97     */
       
    98     virtual void ProcessImageL (CEditorImage * aImage);    
       
    99 
       
   100     /**	ReleasePlugin 
       
   101 	*
       
   102 	*	@see CImageEditorPluginBase
       
   103     */
       
   104 	virtual void ReleasePlugin ();    
       
   105 
       
   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 	CImageEditorSepiaPlugin (const CImageEditorSepiaPlugin & rhs);
       
   129 
       
   130 	/** Assignment operator, disabled 
       
   131 	*/
       
   132 	CImageEditorSepiaPlugin & operator= (const CImageEditorSepiaPlugin & rhs);
       
   133 
       
   134 //@}
       
   135 
       
   136 /** @name Members:*/
       
   137 //@{
       
   138 	///	Crop rectangle
       
   139 	TInt iRotation;
       
   140 	/// MIA parameter struct for brightness
       
   141     CPluginParameters *		iPars;
       
   142 //@}
       
   143 
       
   144 };
       
   145 
       
   146 
       
   147 #endif
       
   148 
       
   149 // End of File