imageeditor/plugins/ClipartPlugin/inc/ImageEditorClipartPlugin.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 IMAGEEDITORCLIPARTPLUGIN_H
       
    21 #define IMAGEEDITORCLIPARTPLUGIN_H
       
    22 
       
    23 //	INCLUDES
       
    24 #include "iepb.h"
       
    25 
       
    26 //  FORWARD DECLARATIONS
       
    27 class CEditorImage;
       
    28 class CCoeControl;
       
    29 class CSystemParameters;
       
    30 
       
    31 
       
    32 /*	CLASS:	CImageEditorClipartPlugin
       
    33 *
       
    34 *	CImageEditorClipartPlugin represents clipart insertion plug-in for Image Editor 
       
    35 *   application.
       
    36 *
       
    37 */
       
    38 class CImageEditorClipartPlugin :	public CImageEditorPluginBase
       
    39 {
       
    40 
       
    41 public:
       
    42 
       
    43 /** @name Methods:*/
       
    44 //@{
       
    45 
       
    46 	/** Default constructor
       
    47 	*
       
    48 	*	@param -
       
    49 	*	@return -
       
    50 	*/
       
    51 	CImageEditorClipartPlugin ();
       
    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 ~CImageEditorClipartPlugin ();
       
    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 
       
   117 /** @name Members:*/
       
   118 //@{
       
   119 
       
   120 //@}
       
   121 
       
   122 private:
       
   123 
       
   124 /** @name Methods:*/
       
   125 //@{
       
   126 
       
   127 	/** Copy constructor, disabled
       
   128 	*/
       
   129 	CImageEditorClipartPlugin (const CImageEditorClipartPlugin & rhs);
       
   130 
       
   131 	/** Assignment operator, disabled 
       
   132 	*/
       
   133 	CImageEditorClipartPlugin & operator= (const CImageEditorClipartPlugin & rhs);
       
   134 
       
   135 //@}
       
   136 
       
   137 /** @name Members:*/
       
   138 //@{
       
   139     /// Plug-in UI control
       
   140     CCoeControl *             iControl;
       
   141     /// System Parameters
       
   142     const CSystemParameters * iSysPars;
       
   143 //@}
       
   144 
       
   145 };
       
   146 
       
   147 
       
   148 #endif
       
   149 
       
   150 // End of File