0
|
1 |
/*
|
|
2 |
* Copyright (c) 2005-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 the License "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 <test/datawrapper.h>
|
|
24 |
|
|
25 |
class CDataWrapperBase : public CDataWrapper
|
|
26 |
{
|
|
27 |
public:
|
|
28 |
virtual ~CDataWrapperBase();
|
|
29 |
|
|
30 |
TBool GetBoolFromConfig(const TDesC& aSectName,const TDesC& aKeyName,TBool& aResult);
|
|
31 |
TBool GetIntFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TInt& aResult);
|
|
32 |
TBool GetInt64FromConfig(const TDesC& aSectName, const TDesC& aKeyName, TInt64& aResult);
|
|
33 |
TBool GetStringFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TPtrC& aResult);
|
|
34 |
TBool GetHexFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TInt& aResult);
|
|
35 |
virtual void InitialiseL();
|
|
36 |
|
|
37 |
protected:
|
|
38 |
CDataWrapperBase();
|
|
39 |
|
|
40 |
TBool GetCommandStringParameter(const TDesC& aParameterName, const TDesC& aSection, TPtrC& aResult, TText8 *aFileName, TInt aLine, TBool aMandatory);
|
|
41 |
TBool GetCommandIntParameter(const TDesC& aParameterName, const TDesC& aSection, TInt& aResult, TText8 *aFileName, TInt aLine, TBool aMandatory);
|
|
42 |
TBool GetCommandInt64Parameter(const TDesC& aParameterName, const TDesC& aSection, TInt64& aResult, TText8 *aFileName, TInt aLine, TBool aMandatory);
|
|
43 |
TBool GetCommandBoolParameter(const TDesC& aParameterName, const TDesC& aSection, TBool& aResult, TText8 *aFileName, TInt aLine, TBool aMandatory);
|
|
44 |
|
|
45 |
private:
|
|
46 |
TBool GetCommandStringParameterL(const TDesC& aSectName, const TDesC& aKeyName, TPtrC& aResult);
|
|
47 |
|
|
48 |
private:
|
|
49 |
// Included ini files
|
|
50 |
RPointerArray<CIniData> iInclude;
|
|
51 |
RPointerArray<HBufC> iBuffer;
|
|
52 |
};
|
|
53 |
|
|
54 |
#endif /* __DATA_WRAPPER_BASE__ */
|