xref: /haiku/src/preferences/notifications/SettingsPane.h (revision 9642f7705b27e5c270c15fa526d14e1848c2c27d)
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 
11 class BNode;
12 
13 class SettingsHost;
14 
15 
16 class SettingsPane : public BView {
17 public:
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 
30 protected:
31 			SettingsHost*	fHost;
32 };
33 
34 #endif // _SETTINGS_PANE_H
35