diff -r c742e1129640 -r aa33c2cb9a50 omadcmoadapters/extmemctrl/inc/extmemctrldcmoadapter.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/omadcmoadapters/extmemctrl/inc/extmemctrldcmoadapter.h Tue Jul 06 14:06:19 2010 +0300 @@ -0,0 +1,89 @@ +/* +* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: ExtMemCtrl plug-in adapter for DCMO +* +*/ + +#ifndef _EXTMEMCTRLDCMOADAPTER__ +#define _EXTMEMCTRLDCMOADAPTER__ + +#include "dcmointerface.h" + +// An implementation of the CDCMOInterface definition +class CExtMemCtrlDCMOAdapter : public CDCMOInterface + { +public: + // Standardised safe construction which leaves nothing the cleanup stack. + static CExtMemCtrlDCMOAdapter* NewL(TAny* aInitParams); + // Destructor + ~CExtMemCtrlDCMOAdapter(); + + // Implementation of CDCMOInterface + /** + * Get the interger type value + * @param aId + * @param aValue + * @return TDCMOStatus + */ + TDCMOStatus GetDCMOPluginIntAttributeValueL(TDCMONode aId, TInt& aValue); + + /** + * Get the string type value + * @param aId + * @param aStrValue + * @return TDCMOStatus + */ + TDCMOStatus GetDCMOPluginStrAttributeValueL(TDCMONode aId, TDes& aStrValue); + + /** + * Set the interger type value + * @param aId + * @param aValue + * @return TDCMOStatus + */ + TDCMOStatus SetDCMOPluginIntAttributeValueL(TDCMONode aId, TInt aValue); + + /** + * Set the string type value + * @param aId + * @param aStrValue + * @return TDCMOStatus + */ + TDCMOStatus SetDCMOPluginStrAttributeValueL(TDCMONode aId, const TDes& aStrValue); + + /** + * Get the localized name of this plug-in + * @param aLocName + * @return None + */ + void GetLocalizedNameL (HBufC*& aLocName); + +private: + // Construction + CExtMemCtrlDCMOAdapter(TAny* aInitParams); + + /** + * second phase constructor + */ + void ConstructL(); + +private: + // Data to pass back from implementation to client + HBufC* iProperty; + HBufC* iDescription; + // Parameters taken from client + CDCMOInterface::TDCMOInterfaceInitParams* iInitParams; + }; + +#endif