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 _GENERAL_VIEW_H 7 #define _GENERAL_VIEW_H 8 9 #include "SettingsPane.h" 10 11 class BCheckBox; 12 class BStringView; 13 class BTextControl; 14 15 class GeneralView : public SettingsPane { 16 public: 17 GeneralView(SettingsHost* host); 18 19 virtual void AttachedToWindow(); 20 virtual void MessageReceived(BMessage* msg); 21 22 // SettingsPane hooks 23 status_t Load(BMessage&); 24 status_t Save(BMessage&); 25 status_t Revert(); 26 27 private: 28 BCheckBox* fNotificationBox; 29 BCheckBox* fAutoStart; 30 BTextControl* fTimeout; 31 BCheckBox* fHideAll; 32 33 bool _CanFindServer(entry_ref* ref); 34 bool _IsServerRunning(); 35 }; 36 37 #endif // _GENERAL_VIEW_H 38