OpenMW
Public Member Functions | Private Member Functions | Private Attributes
Launcher::GameSettings Class Reference

#include <gamesettings.hpp>

List of all members.

Public Member Functions

 GameSettings (Files::ConfigurationManager &cfg)
 ~GameSettings ()
QString value (const QString &key, const QString &defaultValue=QString())
void setValue (const QString &key, const QString &value)
void setMultiValue (const QString &key, const QString &value)
void remove (const QString &key)
QStringList getDataDirs ()
void addDataDir (const QString &dir)
QString getDataLocal ()
bool hasMaster ()
QStringList values (const QString &key, const QStringList &defaultValues=QStringList())
bool readFile (QTextStream &stream)
bool readFile (QTextStream &stream, QMap< QString, QString > &settings)
bool readUserFile (QTextStream &stream)
bool writeFile (QTextStream &stream)

Private Member Functions

void validatePaths ()

Private Attributes

Files::ConfigurationManagermCfgMgr
QMap< QString, QString > mSettings
QMap< QString, QString > mUserSettings
QStringList mDataDirs
QString mDataLocal

Constructor & Destructor Documentation


Member Function Documentation

void Launcher::GameSettings::addDataDir ( const QString &  dir) [inline]
QStringList Launcher::GameSettings::getDataDirs ( ) [inline]
bool Launcher::GameSettings::readFile ( QTextStream &  stream)
bool Launcher::GameSettings::readFile ( QTextStream &  stream,
QMap< QString, QString > &  settings 
)
bool Launcher::GameSettings::readUserFile ( QTextStream &  stream)
void Launcher::GameSettings::remove ( const QString &  key) [inline]
void Launcher::GameSettings::setMultiValue ( const QString &  key,
const QString &  value 
) [inline]
void Launcher::GameSettings::setValue ( const QString &  key,
const QString &  value 
) [inline]
QString Launcher::GameSettings::value ( const QString &  key,
const QString &  defaultValue = QString() 
) [inline]
QStringList Launcher::GameSettings::values ( const QString &  key,
const QStringList &  defaultValues = QStringList() 
)
bool Launcher::GameSettings::writeFile ( QTextStream &  stream)

Member Data Documentation

QStringList Launcher::GameSettings::mDataDirs [private]
QMap<QString, QString> Launcher::GameSettings::mSettings [private]
QMap<QString, QString> Launcher::GameSettings::mUserSettings [private]

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