omadcmoadapters/extmemctrl/inc/extmemctrldcmoadapter.h
changeset 42 aa33c2cb9a50
equal deleted inserted replaced
41:c742e1129640 42:aa33c2cb9a50
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "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 *
       
    14 * Description:  ExtMemCtrl plug-in adapter for DCMO
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef _EXTMEMCTRLDCMOADAPTER__
       
    19 #define _EXTMEMCTRLDCMOADAPTER__
       
    20 
       
    21 #include "dcmointerface.h"
       
    22 
       
    23 // An implementation of the CDCMOInterface definition
       
    24 class CExtMemCtrlDCMOAdapter : public CDCMOInterface
       
    25 	{
       
    26 public:
       
    27 	// Standardised safe construction which leaves nothing the cleanup stack.
       
    28 	static CExtMemCtrlDCMOAdapter* NewL(TAny* aInitParams);
       
    29 	// Destructor	
       
    30 	~CExtMemCtrlDCMOAdapter();
       
    31 
       
    32 	// Implementation of CDCMOInterface
       
    33 	/**
       
    34 	 * Get the interger type value
       
    35 	 * @param aId
       
    36 	 * @param aValue
       
    37 	 * @return TDCMOStatus 
       
    38 	 */
       
    39 	TDCMOStatus  GetDCMOPluginIntAttributeValueL(TDCMONode aId, TInt& aValue);
       
    40 	
       
    41 	/**
       
    42 	 * Get the string type value
       
    43 	 * @param aId
       
    44 	 * @param aStrValue
       
    45 	 * @return TDCMOStatus
       
    46 	 */
       
    47 	TDCMOStatus  GetDCMOPluginStrAttributeValueL(TDCMONode aId, TDes& aStrValue);
       
    48 	
       
    49 	 /**
       
    50 		* Set the interger type value
       
    51 		* @param aId
       
    52 		* @param aValue
       
    53 		* @return TDCMOStatus
       
    54 		*/
       
    55 	TDCMOStatus  SetDCMOPluginIntAttributeValueL(TDCMONode aId, TInt aValue);
       
    56 	
       
    57 	 /**
       
    58 		* Set the string type value
       
    59 		* @param aId
       
    60 		* @param aStrValue
       
    61 		* @return TDCMOStatus
       
    62 		*/
       
    63 	TDCMOStatus  SetDCMOPluginStrAttributeValueL(TDCMONode aId, const TDes& aStrValue);
       
    64 	
       
    65 	/**
       
    66 	 * Get the localized name of this plug-in
       
    67 	 * @param aLocName
       
    68 	 * @return None
       
    69 	 */
       
    70 	void GetLocalizedNameL (HBufC*& aLocName);
       
    71 	
       
    72 private:
       
    73 	// Construction
       
    74 	CExtMemCtrlDCMOAdapter(TAny* aInitParams);
       
    75 	
       
    76 	/**
       
    77 	 * second phase constructor
       
    78 	 */
       
    79 	void ConstructL();
       
    80 
       
    81 private:
       
    82 	// Data to pass back from implementation to client
       
    83 	HBufC* iProperty;
       
    84 	HBufC* iDescription;
       
    85 	// Parameters taken from client
       
    86 	CDCMOInterface::TDCMOInterfaceInitParams* iInitParams;
       
    87 	};  
       
    88 
       
    89 #endif