Home · All Classes · All Functions ·

QProximityReading Class Reference

The QProximityReading class represents one reading from the proximity sensor. More...

    #include <QProximityReading>

This class is under development and is subject to change.

Inherits QSensorReading.


Public Types

enum Proximity { Undefined, Close, NotClose }

Properties


Public Functions

Proximity proximity () const
void setProximity ( Proximity proximity )

Additional Inherited Members


Detailed Description

The QProximityReading class represents one reading from the proximity sensor.

The proximity sensor returns an indication of how far the user is away from the device using the pre-defined values found in the QProximityReading::Proximity enum.


Member Type Documentation

enum QProximityReading::Proximity

This enum represents the proximity of the user.

ConstantValueDescription
QProximityReading::Undefined0The proximity is unknown.
QProximityReading::Close1The user is close to the device.
QProximityReading::NotClose2The user is not close to the device.


Property Documentation

proximity : const Proximity

This property holds the proximity of the user.

Access functions:

Proximity proximity () const

Member Function Documentation

void QProximityReading::setProximity ( Proximity proximity )

Sets the proximity of the user.

See also proximity().


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