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