#ifndef CSV_PREFS_STATE_H #define CSM_PREFS_STATE_H #include #ifndef Q_MOC_RUN #include #endif #include namespace CSMPrefs { class State : public QObject { Q_OBJECT static State *sThis; const std::string mConfigFile; const Files::ConfigurationManager& mConfigurationManager; Settings::Manager mSettings; // not implemented State (const State&); State& operator= (const State&); private: void load(); void declare(); public: State (const Files::ConfigurationManager& configurationManager); ~State(); void save(); static State& get(); }; // convenience function State& get(); } #endif