1/* 2 * Copyright 2009-2015, 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 15class APMDriverInterface : public PowerStatusDriverInterface { 16public: 17 virtual ~APMDriverInterface(); 18 19 virtual status_t Connect(); 20 virtual status_t GetBatteryInfo(int32 index, battery_info* info); 21 virtual status_t GetExtendedBatteryInfo(int32 index, 22 acpi_extended_battery_info* info); 23 virtual int32 GetBatteryCount(); 24 25protected: 26 virtual void _WatchPowerStatus(); 27}; 28 29 30#endif // APM_DRIVER_INTERFACE_H 31