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