apicompatanamdw/bcdrivers/os/mm/common/inc/DataWrapperBase.h
changeset 2 0cb2248d0edc
equal deleted inserted replaced
1:61e9400fe245 2:0cb2248d0edc
       
     1 /*
       
     2 * Copyright (c) 2007-2008 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:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #if (!defined __DATA_WRAPPER_BASE__)
       
    20 #define __DATA_WRAPPER_BASE__
       
    21 
       
    22 //	EPOC includes
       
    23 #include <datawrapper.h>
       
    24 
       
    25 class CDataWrapperBase : public CDataWrapper
       
    26 	{
       
    27 public:
       
    28 	TBool	GetBoolFromConfig(const TDesC& aSectName,const TDesC& aKeyName,TBool& aResult);
       
    29 	TBool	GetIntFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TInt& aResult);
       
    30 	TBool	GetStringFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TPtrC& aResult);
       
    31 	TBool	GetHexFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TInt& aResult);
       
    32 	virtual void	InitialiseL();
       
    33 	inline RFs&		FileServer() { return iFs; }
       
    34 
       
    35 protected:
       
    36 	CDataWrapperBase();
       
    37 	virtual ~CDataWrapperBase();
       
    38 
       
    39 
       
    40 private:
       
    41 	TBool	GetCommandStringParameterL(const TDesC& aSectName, const TDesC& aKeyName, TPtrC& aResult);
       
    42 
       
    43 private:
       
    44 	// Included ini files
       
    45 	RPointerArray<CIniData>	iInclude;
       
    46 	RPointerArray<HBufC>	iBuffer;
       
    47 	RFs                     iFs;
       
    48 	};
       
    49 
       
    50 #endif /* __DATA_WRAPPER_BASE__ */