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