telephonyserverplugins/multimodetsy/test/gprs/tcfgfile.h
changeset 0 3553901f7fa8
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     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 // \file TCfgFile.h
       
    15 // This file is taken from the project t_inter.
       
    16 // No changes has been made to file.
       
    17 // 
       
    18 //
       
    19 
       
    20 #ifndef _TCFGFILE_H_
       
    21 #define _TCFGFILE_H_
       
    22 
       
    23 #include <e32base.h>
       
    24 
       
    25 
       
    26 /**
       
    27  * \class CConfigParams
       
    28  * This class handles a ini file.
       
    29  * Functions for reading a string and a TInt are defined.
       
    30  *
       
    31  */
       
    32 
       
    33 
       
    34 class CConfigParams : public CBase
       
    35 	{
       
    36 public:
       
    37 	static CConfigParams* NewL(const TDesC &aCfgFileName);
       
    38 	const TPtrC FindAlphaVar(const TDesC &aVarName,const TDesC &aDefault);
       
    39 	const TInt	FindNumVar(const TDesC &aVarName, const TInt aDefault);
       
    40 protected:
       
    41 	void ConstructL(const TDesC &aCfgFileName);
       
    42 	CConfigParams(){};
       
    43 private:
       
    44 	TBool iFileExist;
       
    45 	TBuf8<500> iConfigParamBuf8;
       
    46 	TBuf<1000> iConfigParamBuf;
       
    47 	};
       
    48 
       
    49 
       
    50 #endif