1 /* 2 * Copyright 2009, Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Clemens Zeidler, haiku@clemens-zeidler.de 7 */ 8 #ifndef APM_DRIVER_INTERFACE_H 9 #define APM_DRIVER_INTERFACE_H 10 11 12 #include "DriverInterface.h" 13 14 15 class APMDriverInterface : public PowerStatusDriverInterface { 16 public: 17 virtual ~APMDriverInterface(); 18 19 virtual status_t Connect(); 20 virtual status_t GetBatteryInfo(battery_info* info, int32 index); 21 virtual status_t GetExtendedBatteryInfo(acpi_extended_battery_info* info, 22 int32 index); 23 virtual int32 GetBatteryCount(); 24 25 protected: 26 virtual void _WatchPowerStatus(); 27 28 private: 29 #ifndef HAIKU_TARGET_PLATFORM_HAIKU 30 int fDevice; 31 #endif 32 }; 33 34 #endif // APM_DRIVER_INTERFACE_H 35