mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-21 09:23:53 +00:00
a8b45e0a13
1. Declared QStringPair::isEmpty() const 2. Split the CsSettings namespace into two: CSMSettings and CSVSettings. (Required splitting the support.hpp file) 3. Declared several classes as _noqt in CMakeLists.txt for OpenCS
35 lines
771 B
C++
35 lines
771 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 CSMSettings {
|
|
|
|
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
|