Home · All Classes · All Functions ·

QAmbientLightReading Class Reference

The QAmbientLightReading class represents one reading from the ambient light sensor. More...

    #include <QAmbientLightReading>

This class is under development and is subject to change.

Inherits QSensorReading.


Public Types

enum LightLevel { Undefined, Dark, Twilight, Light, Bright, Sunny }

Properties


Public Functions

LightLevel lightLevel () const
void setLightLevel ( LightLevel lightLevel )

Additional Inherited Members


Detailed Description

The QAmbientLightReading class represents one reading from the ambient light sensor.

The ambient light sensor returns the intensity of the ambient light using the pre-defined values found in the QAmbientLightReading::LightLevel enum.


Member Type Documentation

enum QAmbientLightReading::LightLevel

This enum represents the ambient light level.

ConstantValueDescription
QAmbientLightReading::Undefined0The light level is unknown.
QAmbientLightReading::Dark1It is dark.
QAmbientLightReading::Twilight2It is darkish.
QAmbientLightReading::Light3It is light (eg. internal lights).
QAmbientLightReading::Bright4It is bright (eg. shade).
QAmbientLightReading::Sunny5It is very bright (eg. direct sunlight).


Property Documentation

lightLevel : const LightLevel

This property holds the ambient light level.

Access functions:

LightLevel lightLevel () const

Member Function Documentation

void QAmbientLightReading::setLightLevel ( LightLevel lightLevel )

Sets the ambient light level to lightLevel.

See also lightLevel().


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.0.0