1 #ifndef GAMESETTINGS_HPP
2 #define GAMESETTINGS_HPP
10 #include <boost/filesystem/path.hpp>
26 inline QString
value(
const QString &key,
const QString &defaultValue = QString())
41 if (!values.contains(value))
45 if (!values.contains(value))
49 inline void remove(
const QString &key)
63 QStringList
values(
const QString &key,
const QStringList &defaultValues = QStringList())
const;
92 #endif // GAMESETTINGS_HPP
QStringList getDataDirs()
Definition: gamesettings.hpp:55
void setContentList(const QStringList &fileNames)
Definition: gamesettings.cpp:442
bool readFile(QTextStream &stream)
Definition: gamesettings.cpp:94
QString mDataLocal
Definition: gamesettings.hpp:85
void setMultiValue(const QString &key, const QString &value)
Definition: gamesettings.hpp:38
void addDataDir(const QString &dir)
Definition: gamesettings.hpp:58
QMap< QString, QString > mUserSettings
Definition: gamesettings.hpp:82
QStringList mDataDirs
Definition: gamesettings.hpp:84
Definition: configurationmanager.hpp:20
QStringList values(const QString &key, const QStringList &defaultValues=QStringList()) const
Definition: gamesettings.cpp:87
Files::ConfigurationManager & mCfgMgr
Definition: gamesettings.hpp:78
static const char sContentKey[]
Definition: gamesettings.hpp:87
bool readUserFile(QTextStream &stream)
Definition: gamesettings.cpp:99
~GameSettings()
Definition: gamesettings.cpp:38
bool isOrderedLine(const QString &line) const
Definition: gamesettings.cpp:177
void validatePaths()
Definition: gamesettings.cpp:42
QString value(const QString &key, const QString &defaultValue=QString())
Definition: gamesettings.hpp:26
GameSettings(Files::ConfigurationManager &cfg)
Definition: gamesettings.cpp:33
void setValue(const QString &key, const QString &value)
Definition: gamesettings.hpp:32
bool hasMaster()
Definition: gamesettings.cpp:428
bool writeFile(QTextStream &stream)
Definition: gamesettings.cpp:146
bool writeFileWithComments(QFile &file)
Definition: gamesettings.cpp:201
QStringList getContentList() const
Definition: gamesettings.cpp:451
QMap< QString, QString > mSettings
Definition: gamesettings.hpp:81
std::vector< boost::filesystem::path > PathContainer
Definition: gamesettings.hpp:14
void clear()
Definition: gamesettings.cpp:457
void removeDataDir(const QString &dir)
Definition: gamesettings.hpp:57
Definition: gamesettings.hpp:20
QString getDataLocal()
Definition: gamesettings.hpp:59