sl@0: /* sl@0: * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: #if (!defined __DATA_WRAPPER_BASE__) sl@0: #define __DATA_WRAPPER_BASE__ sl@0: sl@0: // EPOC includes sl@0: #include sl@0: sl@0: class CDataWrapperBase : public CDataWrapper sl@0: { sl@0: public: sl@0: virtual ~CDataWrapperBase(); sl@0: sl@0: TBool GetBoolFromConfig(const TDesC& aSectName,const TDesC& aKeyName,TBool& aResult); sl@0: TBool GetIntFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TInt& aResult); sl@0: TBool GetInt64FromConfig(const TDesC& aSectName, const TDesC& aKeyName, TInt64& aResult); sl@0: TBool GetStringFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TPtrC& aResult); sl@0: TBool GetHexFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TInt& aResult); sl@0: virtual void InitialiseL(); sl@0: sl@0: protected: sl@0: CDataWrapperBase(); sl@0: sl@0: TBool GetCommandStringParameter(const TDesC& aParameterName, const TDesC& aSection, TPtrC& aResult, TText8 *aFileName, TInt aLine, TBool aMandatory); sl@0: TBool GetCommandIntParameter(const TDesC& aParameterName, const TDesC& aSection, TInt& aResult, TText8 *aFileName, TInt aLine, TBool aMandatory); sl@0: TBool GetCommandInt64Parameter(const TDesC& aParameterName, const TDesC& aSection, TInt64& aResult, TText8 *aFileName, TInt aLine, TBool aMandatory); sl@0: TBool GetCommandBoolParameter(const TDesC& aParameterName, const TDesC& aSection, TBool& aResult, TText8 *aFileName, TInt aLine, TBool aMandatory); sl@0: sl@0: private: sl@0: TBool GetCommandStringParameterL(const TDesC& aSectName, const TDesC& aKeyName, TPtrC& aResult); sl@0: sl@0: private: sl@0: // Included ini files sl@0: RPointerArray iInclude; sl@0: RPointerArray iBuffer; sl@0: }; sl@0: sl@0: #endif /* __DATA_WRAPPER_BASE__ */