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

QtopiaPowerConstraintManager Class Reference
[QtBaseModule]

The QtopiaPowerConstraintManager class keeps track of power management constraints set by Qt Extended applications. More...

    #include <QtopiaPowerConstraintManager>

Inherits QObject.

Public Functions

Public Slots

Signals

Static Public Members

Additional Inherited Members


Detailed Description

The QtopiaPowerConstraintManager class keeps track of power management constraints set by Qt Extended applications.

In some use cases Qt Extended applications may want to disable power saving acitivities in order to perform their tasks (e.g. videos app disables the dimming of the backlight when it plays a video). This monitor keeps track of all of all constraints set by applications and applies a common denominator to the QtopiaPowerManager.

QtopiaPowerConstraintManager is a singleton, which you can access through QtopiaPowerConstraintManager::instance().

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

See also QtopiaPowerManager.


Member Function Documentation

QtopiaPowerConstraintManager::QtopiaPowerConstraintManager ( QObject * parent = 0 )

Constructs the power constraint manager. parent is passed to QObject.

void QtopiaPowerConstraintManager::applicationTerminated ( const QString & app )   [slot]

The application app has been terminated. Any power constraint applied by this application will be removed.

void QtopiaPowerConstraintManager::forceSuspend ()   [signal]

Emitted when the device was forced to suspend due to the forced-suspend timeout. This timeout is set by defining the QTOPIA_MAX_SCREEN_DISABLE_TIME, usually in custom.h.

See also Hardware Configuration and QtopiaPowerManager::forceSuspend().

QtopiaPowerConstraintManager * QtopiaPowerConstraintManager::instance ()   [static]

Returns the singleton instance of the QtopiaPowerConstraintManager.

void QtopiaPowerConstraintManager::setConstraint ( QtopiaApplication::PowerConstraint mode, const QString & app )

The application app temporarily requests mode.

void QtopiaPowerConstraintManager::topLevelWindowChanged ()   [slot]

The top level window has changed. Update only when visible power constraints.


Copyright © 2009 Nokia Trademarks
Qt Extended 4.4.3