--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lowlevellibsandfws/apputils/bsul/test/t_iniparser/LegacyParser.h Tue Feb 02 02:01:42 2010 +0200
@@ -0,0 +1,59 @@
+// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+// INIFILE.H
+// Declares the class CIniFile for accessing ini file.
+//
+//
+
+/**
+ @file
+*/
+
+#ifndef INIFILE_H__
+#define INIFILE_H__
+
+#include <e32base.h>
+
+class CIniFile : public CBase
+ {
+public:
+ enum TIniPanic
+ {
+ ESectionNameTooBig,
+ EVarNameTooBig
+ };
+
+public:
+ static CIniFile* NewL(const TDesC& aName);
+ static CIniFile* NewL(const TDesC& aName, const TDesC& aPath);
+ virtual ~CIniFile();
+
+public:
+ TBool FindVar(const TDesC &aSection, const TDesC &aVarName, TPtrC &aResult);
+ TBool FindVar(const TDesC &aSection, const TDesC &aVarName, TInt &aResult);
+
+private:
+ CIniFile();
+ void ConstructL(const TDesC& aName, const TDesC& aPath);
+
+private: // utility
+ void Panic(TIniPanic aPanic);
+
+protected: // owned
+ HBufC* iName; // full name of ini file
+ HBufC* iToken;
+ TPtr iPtr;
+ };
+
+#endif // INIFILE_H__