1/* 2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef SETTINGS_DESCRIPTION_H 6#define SETTINGS_DESCRIPTION_H 7 8 9#include <ObjectList.h> 10#include <Referenceable.h> 11 12 13class Setting; 14 15 16class SettingsDescription : public BReferenceable { 17public: 18 SettingsDescription(); 19 virtual ~SettingsDescription(); 20 21 int32 CountSettings() const; 22 Setting* SettingAt(int32 index) const; 23 Setting* SettingByID(const char* id) const; 24 25 bool AddSetting(Setting* setting); 26 27private: 28 typedef BObjectList<Setting> SettingsList; 29 30private: 31 SettingsList fSettings; 32}; 33 34 35#endif // SETTINGS_DESCRIPTION_H 36