Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

APMBattery Class Reference
[QtEssentialsModule]

The APMBattery class provides a QPowerSource mapping to the Linux APM interface. More...

    #include <APMBattery>

Inherits QObject.

Additional Inherited Members


Detailed Description

The APMBattery class provides a QPowerSource mapping to the Linux APM interface.

The APMBattery provides a Qt Extended Server Task. Qt Extended Server Tasks are documented in full in the QtopiaServerApplication class documentation.

Task NameAPMBattery
InterfacesNone
ServicesNone

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:

ItemDescription
/ServerTasks/APMBattery/APMAvailableSet 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. In this case, some QPowerSource fields will be unavailable or incomplete.

Information is polled from /proc/apm once a minute.

This class is part of the Qt Extended server and cannot be used by other Qt Extended applications.


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3