1 #ifndef _POWER_BUTTON_MONITOR_H 2 #define _POWER_BUTTON_MONITOR_H 3 4 #include <Handler.h> 5 6 #define POLL_POWER_BUTTON_STATUS 'ppbs' 7 8 class PowerButtonMonitor : public BHandler { 9 public: 10 PowerButtonMonitor(); 11 virtual ~PowerButtonMonitor(); 12 13 virtual void MessageReceived(BMessage *msg); 14 15 private: 16 int power_button_fd; 17 }; 18 19 #endif // _POWER_BUTTON_MONITOR_H 20