imageeditor/plugins/NegativePlugin/src/ImageEditorNegativePlugin.cpp
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 
       
    21 #include "ImageEditorNegativePlugin.h"
       
    22 
       
    23 /// CONSTANTS
       
    24 _LIT (KPgnResourceFile, "negative.rsc");
       
    25 
       
    26 
       
    27 //=============================================================================
       
    28 EXPORT_C CImageEditorPluginBase * CreateImageEditorPlugin ()
       
    29 {
       
    30 	CImageEditorNegativePlugin * plugin = new (ELeave) CImageEditorNegativePlugin;
       
    31 	CleanupStack::PushL(plugin);
       
    32 	plugin->ConstructL();
       
    33 	CleanupStack::Pop(); // plugin
       
    34     return plugin;
       
    35 }
       
    36 
       
    37 //=============================================================================
       
    38 CImageEditorNegativePlugin::CImageEditorNegativePlugin () :
       
    39 CImageEditorPluginBase()
       
    40 {
       
    41 
       
    42 }
       
    43 
       
    44 //=============================================================================
       
    45 void CImageEditorNegativePlugin::ConstructL ()
       
    46 {
       
    47     CImageEditorPluginBase::ConstructL (KPgnResourcePath, KPgnResourceFile);
       
    48 }
       
    49 
       
    50 //=============================================================================
       
    51 CImageEditorNegativePlugin::~CImageEditorNegativePlugin ()
       
    52 {
       
    53     ReleasePlugin();
       
    54 }
       
    55 
       
    56 //=============================================================================
       
    57 TInt CImageEditorNegativePlugin::SetProperty (
       
    58 	TInt			/*aPropertyId*/, 
       
    59 	TDesC &			/*aPropertyValue*/
       
    60 	)
       
    61 {
       
    62 	return KErrNotSupported;
       
    63 }
       
    64 
       
    65 //=============================================================================
       
    66 TInt CImageEditorNegativePlugin::GetProperty (
       
    67 	TInt		aPropertyId, 
       
    68 	TDes &		aPropertyValue
       
    69 	)
       
    70 {
       
    71 	//	Clean buffer
       
    72 	aPropertyValue.Zero();
       
    73 
       
    74 	//	Copy data
       
    75 	switch (aPropertyId) 
       
    76 	{
       
    77 		case KCapParamStruct:
       
    78 		{
       
    79 			return KErrNone;
       
    80 		}
       
    81 		default:
       
    82 		{
       
    83 			return CImageEditorPluginBase::GetProperty (aPropertyId, aPropertyValue);
       
    84 		}
       
    85 	}
       
    86 }
       
    87 
       
    88 //=============================================================================
       
    89 TInt CImageEditorNegativePlugin::InitPluginL (
       
    90 	const TRect &		/*aRect*/,
       
    91 	CCoeControl *		/*aParent*/,
       
    92 	CCoeControl *&		aPluginControl
       
    93 	)
       
    94 {
       
    95 	aPluginControl = 0;
       
    96 	return KErrNone;
       
    97 }
       
    98 
       
    99 //=============================================================================
       
   100 void CImageEditorNegativePlugin::ProcessImageL (CEditorImage * /*aImage*/ )
       
   101 {
       
   102 	// Own image processing functionality here
       
   103 }
       
   104 
       
   105 //=============================================================================
       
   106 void CImageEditorNegativePlugin::ReleasePlugin ()
       
   107 {
       
   108 
       
   109 }
       
   110 
       
   111 // End of File