Public Member Functions

Settings Class Reference

Manage program's settings. More...

#include <Settings.h>

Inheritance diagram for Settings:
File

List of all members.

Public Member Functions

 Settings (QObject *parent=0)
int getFieldPos (QString content, QString fieldName)
 Return position of the specified option.
QString getFieldValue (QString fieldName)
 Return the value of the specified option (if exists).
bool setFieldValue (QString fieldName, QString value)
 Set the value of the specified option (if exists).

Detailed Description

Manage program's settings.

Represents the setting's file. Allow to set and get the values of the various options (fields).


Constructor & Destructor Documentation

Settings::Settings ( QObject *  parent = 0 )

Set options' default values if fields aren't already been set.


Member Function Documentation

int Settings::getFieldPos ( QString  content,
QString  fieldName 
)

Return position of the specified option.

Parameters:
contentthe string where to search the option.
fieldNamethe option's name.
QString Settings::getFieldValue ( QString  fieldName )

Return the value of the specified option (if exists).

Parameters:
fieldNamethe option's name.
bool Settings::setFieldValue ( QString  fieldName,
QString  value 
)

Set the value of the specified option (if exists).

Parameters:
fieldNamethe option's name.
valuethe new option's value.

The documentation for this class was generated from the following files:
 All Classes Functions