xref: /haiku/headers/private/debugger/settings/generic/SettingsDescription.h (revision 21258e2674226d6aa732321b6f8494841895af5f)
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 
13 class Setting;
14 
15 
16 class SettingsDescription : public BReferenceable {
17 public:
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 
27 private:
28 			typedef BObjectList<Setting> SettingsList;
29 
30 private:
31 			SettingsList		fSettings;
32 };
33 
34 
35 #endif	// SETTINGS_DESCRIPTION_H
36