mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-10 15:39:02 +00:00
36 lines
770 B
C++
36 lines
770 B
C++
|
#ifndef USERSETTINGS_HPP
|
||
|
#define USERSETTINGS_HPP
|
||
|
|
||
|
#include <QTextStream>
|
||
|
#include <QStringList>
|
||
|
#include <QString>
|
||
|
#include <QMap>
|
||
|
|
||
|
#include <boost/filesystem/path.hpp>
|
||
|
|
||
|
#include "support.hpp"
|
||
|
|
||
|
namespace Files { typedef std::vector<boost::filesystem::path> PathContainer;
|
||
|
struct ConfigurationManager;}
|
||
|
|
||
|
class QFile;
|
||
|
|
||
|
namespace CsSettings {
|
||
|
|
||
|
class UserSettings
|
||
|
{
|
||
|
public:
|
||
|
UserSettings(Files::ConfigurationManager &cfg);
|
||
|
~UserSettings();
|
||
|
|
||
|
QFile *openFile (const QString &);
|
||
|
bool writeFile(QFile *file, QMap<QString, SettingList *> §ions);
|
||
|
void getSettings (QTextStream &stream, SectionMap &settings);
|
||
|
|
||
|
private:
|
||
|
Files::ConfigurationManager &mCfgMgr;
|
||
|
|
||
|
};
|
||
|
}
|
||
|
#endif // USERSETTINGS_HPP
|