vfs: check userland buffers before reading them.
[haiku.git] / headers / private / debugger / settings / generic / SettingsDescription.h
blobea63c7e949da91f5a869d596af20ceb136642070
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
9 #include <ObjectList.h>
10 #include <Referenceable.h>
13 class Setting;
16 class SettingsDescription : public BReferenceable {
17 public:
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);
27 private:
28 typedef BObjectList<Setting> SettingsList;
30 private:
31 SettingsList fSettings;
35 #endif // SETTINGS_DESCRIPTION_H