xref: /haiku/src/add-ons/input_server/devices/keyboard/TeamMonitorWindow.h (revision 180e55a48b0ab615bb710530840c4f21f5e918f1)
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 <Window.h>
17 
18 #include "TeamListItem.h"
19 
20 
21 class TeamDescriptionView;
22 
23 class TeamMonitorWindow : public BWindow {
24 public:
25 							TeamMonitorWindow();
26 	virtual					~TeamMonitorWindow();
27 
28 	virtual void			MessageReceived(BMessage* message);
29 	virtual bool			QuitRequested();
30 
31 			void			Enable();
32 			void			Disable();
33 
34 private:
35 			void			UpdateList();
36 
37 			bool			fQuitting;
38 			BMessageRunner*	fUpdateRunner;
39 			BListView*		fListView;
40 			BButton*		fKillButton;
41 			BButton*		fRestartButton;
42 			TeamDescriptionView*		fDescriptionView;
43 };
44 
45 static const uint32 kMsgCtrlAltDelPressed = 'TMcp';
46 
47 #endif	// TEAM_MONITOR_WINDOW_H
48