xref: /haiku/src/apps/powerstatus/APMDriverInterface.h (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
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 
15 class APMDriverInterface : public PowerStatusDriverInterface {
16 public:
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 
25 protected:
26 	virtual void				_WatchPowerStatus();
27 };
28 
29 
30 #endif	// APM_DRIVER_INTERFACE_H
31