MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

Sensors Backend

The Sensors Backend connects the Sensors API to the platform services or hardware sensors.

Overview

Backend API

QSensor instances talk to a backend object. Backends are usually supplied with the QtSensors library for a specific device although third party backends may be used as well. A backend may talk directly to hardware or it may talk to a system service. In some instances it may even talk to another sensor. An example of this is the orientation sensor backend that talks to an accelerometer to determine the orientation.

There are also some topics specific to backend implementors.

Backend Classes

If you are making sensors available through the Sensors API, these are the classes to use.

QSensorBackend

Sensor implementation

QSensorBackendFactory

Instantiates instances of QSensorBackend

QSensorChangesInterface

The pure virtual interface to sensor plugins

QSensorManager

Handles registration and creation of sensor backends

QSensorPluginInterface

The pure virtual interface to sensor plugins

See also Sensors Backend Topics.