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