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

DefaultBattery Class Reference
[QtBaseModule]

The DefaultBattery class provides a proxy for another system battery. More...

    #include <DefaultBattery>

Inherits QPowerSourceProvider.

Public Functions

Additional Inherited Members


Detailed Description

The DefaultBattery class provides a proxy for another system battery.

To simplify the design of system themes and other mechanisms that source information directly from the value space, the DefaultBattery class proxies the information of another, configurable system battery under the name "DefaultBattery".

The battery to proxy can be manually configured by setting the PowerSources/PrimaryBatterySource key in the Trolltech/HardwareAccessories configuration file. If this setting is missing, the DefaultBattery class will proxy the first available QPowerSource::Battery typed power source.

The DefaultBattery class provides the DefaultBattery task. It is part of the Qt Extended server and cannot be used by other Qt Extended applications.


Member Function Documentation

DefaultBattery::DefaultBattery ( QObject * parent = 0 )

Constructs a new DefaultBattery instance with the given parent.


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3