omadcmoadapters/wlanctrl/inc/wlanctrldcmoadapter.h
changeset 47 d316aecb87fd
equal deleted inserted replaced
46:b9b00b134b0d 47:d316aecb87fd
       
     1 //
       
     2 /*
       
     3  * ==============================================================================
       
     4  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     5  * All rights reserved.
       
     6  * This component and the accompanying materials are made available
       
     7  * under the terms of "Eclipse Public License v1.0"
       
     8  * which accompanies this distribution, and is available
       
     9  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
    10  *
       
    11  * Initial Contributors:
       
    12  * Nokia Corporation - initial contribution.
       
    13  *
       
    14  * Contributors:
       
    15  * 
       
    16  * Description:
       
    17  * 
       
    18  * ==============================================================================
       
    19  */
       
    20 
       
    21 #ifndef _WlanCtrlDCMOAdapter__
       
    22 #define _WlanCtrlDCMOAdapter__
       
    23 
       
    24 #include "dcmointerface.h"
       
    25 #include "dcmoconst.h"
       
    26 
       
    27 // An implementation of the CDCMOInterface definition
       
    28 class CWLanCtrlDCMOAdapter : public CDCMOInterface
       
    29 	{
       
    30 public:
       
    31 	// Standardised safe construction which leaves nothing the cleanup stack.
       
    32 	static CWLanCtrlDCMOAdapter* NewL(TAny* aInitParams);
       
    33 
       
    34 	// Destructor	
       
    35 	~CWLanCtrlDCMOAdapter();
       
    36 
       
    37 	// Implementation of CDCMOInterface
       
    38     virtual TDCMOStatus  GetDCMOPluginIntAttributeValueL( TDCMONode aId, TInt& aValue); 
       
    39     virtual TDCMOStatus  GetDCMOPluginStrAttributeValueL( TDCMONode aId, TDes& aStrValue);
       
    40     virtual TDCMOStatus  SetDCMOPluginIntAttributeValueL( TDCMONode aId, TInt aValue);
       
    41     virtual TDCMOStatus  SetDCMOPluginStrAttributeValueL( TDCMONode aId, const TDes& aStrValue);
       
    42     virtual void GetLocalizedNameL( HBufC*& aLocName );
       
    43 	
       
    44 private:
       
    45 	// Construction
       
    46 	CWLanCtrlDCMOAdapter(TAny* aInitParams);
       
    47 	void ConstructL();
       
    48 	TDCMOStatus MapFeatureControlError( TInt aErrorCode );
       
    49 
       
    50 private:
       
    51 	// Data to pass back from implementation to client
       
    52 	HBufC* iProperty;
       
    53 	HBufC* iDescription;
       
    54 	// Parameters taken from client
       
    55 	CDCMOInterface::TDCMOInterfaceInitParams* iInitParams;
       
    56 	
       
    57 	
       
    58 	};  
       
    59 
       
    60 #endif