Home · All Classes · Grouped Classes · Annotated · Functions

QtopiaPowerConstraintManager Class Reference

The QtopiaPowerConstraintManager class keeps track of power management constraints set by Qtopia 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 Qtopia applications.

In some use cases Qtopia 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 Qtopia server and cannot be used by other Qtopia 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.


Copyright © 2008 Nokia Trademarks
Qtopia 4.3.3