1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 15:39:02 +00:00
OpenMW/apps/opencs/model/settings/usersettings.hpp

36 lines
770 B
C++
Raw Normal View History

2013-05-08 01:33:42 +00:00
#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 *> &sections);
void getSettings (QTextStream &stream, SectionMap &settings);
private:
Files::ConfigurationManager &mCfgMgr;
};
}
#endif // USERSETTINGS_HPP