xref: /haiku/src/servers/power/power_monitor.h (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
1 /*
2  * Copyright 2013-2014, Haiku, Inc.
3  * Distributed under the terms of the MIT license.
4  *
5  * Authors:
6  *		Jérôme Duval, korli@users.berlios.de.
7  *		Rene Gollent, rene@gollent.com.
8  */
9 #ifndef _POWER_MONITOR_H
10 #define _POWER_MONITOR_H
11 
12 
13 #include <set>
14 
15 
16 class PowerMonitor {
17 public:
18 	virtual	 					~PowerMonitor() {};
19 
20 	virtual	void				HandleEvent(int fd) = 0;
21 
22 	virtual	const std::set<int>&
23 								FDs() const = 0;
24 };
25 
26 
27 #endif // _POWER_MONITOR_H
28