/* * Copyright 2010, Oliver Ruiz Dorantes. All rights reserved. * Distributed under the terms of the MIT License. */ #ifndef _PREFERENCES_CONTAINER_H #define _PREFERENCES_CONTAINER_H #include // TODO: added to main singleton class? template T* Singleton::fInstance = 0; template class PreferencesContainer : public Singleton > { public: static const char* fFilename; static SettingsType* Item() { return &(Singleton >::Get()->fSettings); } // TODO: // status_t Save(); // status_t Load(); private: SettingsType fSettings; }; #endif // _PREFERENCES_CONTAINER_H