![]() |
Home · All Classes · Grouped Classes · Annotated · Functions | ![]() |
The APMBattery class provides a QPowerSource mapping to the Linux APM interface. More...
#include <APMBattery>
Inherits QObject.
The APMBattery class provides a QPowerSource mapping to the Linux APM interface.
The APMBattery provides a Qtopia Server Task. Qtopia Server Tasks are documented in full in the QtopiaServerApplication class documentation.
Task Name | APMBattery |
Interfaces | None |
Services | None |
The APMBattery task creates three QPowerSource providers, named PrimaryAC, APMBattery and BackupAC that map to the primary ac, battery and backup ac information respectively provided by the Linux APM /proc/apm file system interface.
The APMBattery task also exports the following value space items:
Item | Description |
---|---|
/ServerTasks/APMBattery/APMAvailable | Set to true if APM is available on the target system, and false otherwise. |
This task is only necessary on devices that use the Linux APM interface as their only source of battery and wall power information. As the APM interface is not as rich as Qtopia's, some QPowerSource fields will be unavailable or incomplete.
Information is polled from /proc/apm once a minute.
This class is part of the Qtopia server and cannot be used by other Qtopia applications.
Copyright © 2008 Nokia | Trademarks | Qtopia 4.3.3 |