#include <iniparser.h>
Link against: iniparser.lib
class CIniData : public CBase |
Public Member Functions | |
---|---|
virtual | ~CIniData() |
IMPORT_C TInt | AddValue(const TDesC &, const TDesC &, const TDesC &) |
IMPORT_C TInt | AddValue(const TDesC &, const TDesC &) |
IMPORT_C TBool | FindVar(const TDesC &, TPtrC &) |
IMPORT_C TBool | FindVar(const TDesC &, TInt &) |
IMPORT_C TBool | FindVar(const TDesC &, const TDesC &, TPtrC &) |
IMPORT_C TBool | FindVar(const TDesC &, const TDesC &, TInt &) |
IMPORT_C TBool | FindVar(const TDesC &, const TDesC &, TInt64 &) |
IMPORT_C CIniData * | NewL(const TDesC &) |
IMPORT_C CIniData * | NewL(const TDesC &, const TDesC &) |
IMPORT_C TInt | SetValue(const TDesC &, const TDesC &) |
IMPORT_C TInt | SetValue(const TDesC &, const TDesC &, const TDesC &) |
IMPORT_C void | WriteToFileL() |
Protected Member Functions | |
---|---|
CIniData() | |
CIniData(const TDesC &) | |
IMPORT_C void | ConstructL(const TDesC &) |
Test
Defines the interface to acess to ini data file
The basic functions, FindVar(), SetValue(), AddValue() and WriteToFileL() Compulsory to call WriteToFileL() after calling any SetValue() or AddValue()
IMPORT_C | CIniData | ( | const TDesC & | aSysDrive | ) | [protected] |
Overloaded constructor Takes in the system drive letter to overwrite
IMPORT_C | ~CIniData | ( | ) | [virtual] |
Destructor Frees the resources located in second-phase constructor
IMPORT_C void | ConstructL | ( | const TDesC & | aName | ) | [protected] |
Parameters | |
---|---|
aName | the name of the file which contains the ini data |
Leave Codes | |
---|---|
One | of the system-wide error codes |
Find a text value from given aKeyName and aSecName in the ini data file
Parameters | |
---|---|
aSection | Section containing key |
aKeyName | Key being searched for in aSectName |
aResult | On return, contains the text result |
Find an 64-bit integer value from given aKeyName and aSecName in the ini data file
Parameters | |
---|---|
aKeyName | Key being searched for in aSectName |
aResult | On return, contains TInt64 result |
Creates, and returns a pointer to CIniData object, leave on failure
Parameters | |
---|---|
aName | - Path and name of the ini file to be parsed |
aSysDrive | - Drive letter to overwrite the default system drive |