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(); 21 22 virtual int FD() const { return fFD; } 23 private: 24 int fFD; 25 }; 26 27 28 #endif // _LID_MONITOR_H 29