/* * Copyright (c) 2003, Robert Collins. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * A copy of the GNU General Public License can be found at * http://www.gnu.org/ * * Written by Robert Collins * */ #ifndef SETUP_USERSETTINGS_H #define SETUP_USERSETTINGS_H /* A collection of user-related settings */ #include class UserSetting; class UserSettings { public: static UserSettings &Instance(); void registerSetting(UserSetting &); void deRegisterSetting(UserSetting &); void loadAllSettings(); void saveAllSettings(); private: static UserSettings Instance_; typedef std::vector Settings; void init(); int inited; Settings settings; }; #endif /* SETUP_USERSETTINGS_H */