|
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 "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 |
|
20 #if (!defined __DATA_WRAPPER_BASE__) |
|
21 #define __DATA_WRAPPER_BASE__ |
|
22 |
|
23 // EPOC includes |
|
24 #include <datawrapper.h> |
|
25 |
|
26 class CDataWrapperBase : public CDataWrapper |
|
27 { |
|
28 public: |
|
29 TBool GetBoolFromConfig(const TDesC& aSectName,const TDesC& aKeyName,TBool& aResult); |
|
30 TBool GetIntFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TInt& aResult); |
|
31 TBool GetStringFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TPtrC& aResult); |
|
32 TBool GetHexFromConfig(const TDesC& aSectName, const TDesC& aKeyName, TInt& aResult); |
|
33 virtual void InitialiseL(); |
|
34 inline RFs& FileServer() { return iFs; } |
|
35 |
|
36 protected: |
|
37 CDataWrapperBase(); |
|
38 virtual ~CDataWrapperBase(); |
|
39 |
|
40 |
|
41 private: |
|
42 TBool GetCommandStringParameterL(const TDesC& aSectName, const TDesC& aKeyName, TPtrC& aResult); |
|
43 |
|
44 private: |
|
45 // Included ini files |
|
46 RPointerArray<CIniData> iInclude; |
|
47 RPointerArray<HBufC> iBuffer; |
|
48 RFs iFs; |
|
49 }; |
|
50 |
|
51 #endif /* __DATA_WRAPPER_BASE__ */ |