1/*
2 * Copyright 2010-2017, Haiku, Inc. All Rights Reserved.
3 * Copyright 2009, Pier Luigi Fiorini.
4 * Distributed under the terms of the MIT License.
5 */
6#ifndef _SETTINGS_PANE_H
7#define _SETTINGS_PANE_H
8
9#include <View.h>
10
11class BNode;
12
13class SettingsHost;
14
15
16class SettingsPane : public BView {
17public:
18							SettingsPane(const char* name, SettingsHost* host);
19
20	void					SettingsChanged(bool showExample);
21
22	virtual status_t		Load(BMessage&) = 0;
23	virtual	status_t		Save(BMessage&) = 0;
24	virtual	status_t		Revert() = 0;
25	virtual bool			RevertPossible() = 0;
26	virtual status_t		Defaults() = 0;
27	virtual bool			DefaultsPossible() = 0;
28	virtual bool			UseDefaultRevertButtons() = 0;
29
30protected:
31			SettingsHost*	fHost;
32};
33
34#endif // _SETTINGS_PANE_H
35