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