1 /* 2 * Copyright 2004-2008, Haiku. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Jérôme Duval 7 * Axel Doerfler, axeld@pinc-software.de 8 */ 9 #ifndef TEAM_MONITOR_WINDOW_H 10 #define TEAM_MONITOR_WINDOW_H 11 12 13 #include <Box.h> 14 #include <Button.h> 15 #include <ListView.h> 16 #include <MessageFilter.h> 17 #include <Window.h> 18 19 #include "TeamListItem.h" 20 21 22 class TeamDescriptionView; 23 24 class TeamMonitorWindow : public BWindow { 25 public: 26 TeamMonitorWindow(); 27 virtual ~TeamMonitorWindow(); 28 29 virtual void MessageReceived(BMessage* message); 30 virtual bool QuitRequested(); 31 32 void Enable(); 33 void Disable(); 34 void DeselectAll(); 35 void LocaleChanged(); 36 void QuitTeam(TeamListItem* item); 37 void MarkUnquittableTeam(BMessage* message); 38 39 private: 40 void UpdateList(); 41 42 bool fQuitting; 43 BMessageRunner* fUpdateRunner; 44 BListView* fListView; 45 BButton* fCancelButton; 46 BButton* fKillButton; 47 BButton* fQuitButton; 48 BButton* fRestartButton; 49 TeamDescriptionView* fDescriptionView; 50 BList fTeamQuitterList; 51 }; 52 53 static const uint32 kMsgCtrlAltDelPressed = 'TMcp'; 54 static const uint32 kMsgDeselectAll = 'TMds'; 55 static const uint32 kMsgQuitFailed = 'TMqf'; 56 57 #endif // TEAM_MONITOR_WINDOW_H 58