#ifndef USERSETTINGS_HPP #define USERSETTINGS_HPP #include #include #include #include #include #include "support.hpp" namespace Files { typedef std::vector PathContainer; struct ConfigurationManager;} class QFile; namespace CSMSettings { struct UserSettings: public QObject { Q_OBJECT public: static UserSettings &instance() { static UserSettings instance; return instance; } QFile *openFile (const QString &); bool writeFile(QFile *file, QMap §ions); void getSettings (QTextStream &stream, SectionMap &settings); private: UserSettings *mUserSettingsInstance; UserSettings(); ~UserSettings(); UserSettings (UserSettings const &); //not implemented void operator= (UserSettings const &); //not implemented signals: void signalUpdateEditorSetting (const QString &settingName, const QString &settingValue); }; } #endif // USERSETTINGS_HPP