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