xref: /haiku/src/preferences/notifications/SettingsPane.h (revision 220d04022750f40f8bac8f01fa551211e28d04f2)
1 /*
2  * Copyright 2010, 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 const int32 kSettingChanged = '_STC';
16 
17 class SettingsPane : public BView {
18 public:
19 							SettingsPane(const char* name, SettingsHost* host);
20 
21 	virtual	void			MessageReceived(BMessage* msg);
22 
23 	virtual status_t		Load() = 0;
24 	virtual	status_t		Save() = 0;
25 	virtual	status_t		Revert() = 0;
26 
27 protected:
28 			SettingsHost*	fHost;
29 };
30 
31 #endif // _SETTINGS_PANE_H
32