MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QProximityReading Class Reference

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

 #include <QProximityReading>

Inherits: QSensorReading.

This class was introduced in Qt Mobility 1.0.

Properties

Public Functions

bool close () const
void setClose ( bool close )

Additional Inherited Members

  • 1 public slot inherited from QObject
  • 1 signal inherited from QObject
  • 1 public variable inherited from QObject
  • 4 static public members inherited from QObject
  • 7 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QProximityReading class represents one reading from the proximity sensor.

The proximity sensor can only indicate if an object is close or not.

The distance at which an object is considered close is device-specific. This distance may be available in the QSensor::outputRanges property.

Property Documentation

close : const bool

This property holds a value indicating if something is close.

Set to true if something is close. Set to false is nothing is close.

This property was introduced in Qt Mobility 1.0.

Access functions:

bool close () const

See also QProximityReading_Units.

Member Function Documentation

void QProximityReading::setClose ( bool close )

Sets the close value to close.

This function was introduced in Qt Mobility 1.0.

See also close().