xref: /haiku/src/servers/power/power_button_monitor.h (revision bf29cdd77788f6761ca85f6039abec2589c45194)
1 /*
2  * Copyright 2005-2014, Haiku, Inc.
3  * Distributed under the terms of the MIT license.
4  *
5  * Authors:
6  *		Rene Gollent
7  *		Nathan Whitehorn
8  */
9 #ifndef _POWER_BUTTON_MONITOR_H
10 #define _POWER_BUTTON_MONITOR_H
11 
12 
13 #include "power_monitor.h"
14 
15 
16 class PowerButtonMonitor : public PowerMonitor {
17 public:
18 								PowerButtonMonitor();
19 	virtual	 					~PowerButtonMonitor();
20 
21 	virtual void				HandleEvent(int fd);
22 
23 	virtual const std::set<int>&
FDs()24 								FDs() const { return fFDs; }
25 private:
26 			std::set<int>		fFDs;
27 };
28 
29 
30 #endif // _POWER_BUTTON_MONITOR_H
31