2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
5 #ifndef SETTINGS_DESCRIPTION_H
6 #define SETTINGS_DESCRIPTION_H
9 #include <ObjectList.h>
10 #include <Referenceable.h>
16 class SettingsDescription
: public BReferenceable
{
18 SettingsDescription();
19 virtual ~SettingsDescription();
21 int32
CountSettings() const;
22 Setting
* SettingAt(int32 index
) const;
23 Setting
* SettingByID(const char* id
) const;
25 bool AddSetting(Setting
* setting
);
28 typedef BObjectList
<Setting
> SettingsList
;
31 SettingsList fSettings
;
35 #endif // SETTINGS_DESCRIPTION_H