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 15class LidMonitor : public PowerMonitor { 16public: 17 LidMonitor(); 18 virtual ~LidMonitor(); 19 20 virtual void HandleEvent(int fd); 21 22 virtual const std::set<int>& 23 FDs() const { return fFDs; } 24private: 25 std::set<int> fFDs; 26}; 27 28 29#endif // _LID_MONITOR_H 30