OpenMW
|
#include <gamesettings.hpp>
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::ConfigurationManager & | mCfgMgr |
QMap< QString, QString > | mSettings |
QMap< QString, QString > | mUserSettings |
QStringList | mDataDirs |
QString | mDataLocal |
void Launcher::GameSettings::addDataDir | ( | const QString & | dir | ) | [inline] |
QStringList Launcher::GameSettings::getDataDirs | ( | ) | [inline] |
QString Launcher::GameSettings::getDataLocal | ( | ) | [inline] |
bool Launcher::GameSettings::hasMaster | ( | ) |
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] |
void Launcher::GameSettings::validatePaths | ( | ) | [private] |
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 | ) |
QStringList Launcher::GameSettings::mDataDirs [private] |
QString Launcher::GameSettings::mDataLocal [private] |
QMap<QString, QString> Launcher::GameSettings::mSettings [private] |
QMap<QString, QString> Launcher::GameSettings::mUserSettings [private] |