equal
deleted
inserted
replaced
|
1 // Copyright (c) 2000-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // This file is taken from the project t_inter. |
|
15 // No changes has been made to file. |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalComponent |
|
22 */ |
|
23 |
|
24 #ifndef _TE_GPRSCFGFILE_H_ |
|
25 #define _TE_GPRSCFGFILE_H_ |
|
26 |
|
27 #include <e32base.h> |
|
28 |
|
29 |
|
30 /** |
|
31 * \class CConfigParams |
|
32 * This class handles a ini file. |
|
33 * Functions for reading a string and a TInt are defined. |
|
34 * |
|
35 */ |
|
36 |
|
37 |
|
38 class CConfigParams : public CBase |
|
39 { |
|
40 public: |
|
41 static CConfigParams* NewL(const TDesC &aCfgFileName); |
|
42 const TPtrC FindAlphaVar(const TDesC &aVarName,const TDesC &aDefault); |
|
43 TInt FindNumVar(const TDesC &aVarName, const TInt aDefault); |
|
44 CConfigParams(){}; |
|
45 protected: |
|
46 void ConstructL(const TDesC &aCfgFileName); |
|
47 // CConfigParams(){}; |
|
48 private: |
|
49 TBool iFileExist; |
|
50 TBuf8<500> iConfigParamBuf8; |
|
51 TBuf<1000> iConfigParamBuf; |
|
52 }; |
|
53 |
|
54 |
|
55 #endif |