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