Member Function Documentation
QSensorBackend * QSensorManager::createBackend(QSensor * sensor) [static]
Create a backend for sensor. Returns null if no suitable backend exists.
bool QSensorManager::isBackendRegistered(const QByteArray & type, const QByteArray & identifier) [static]
Returns true if the backend identified by type and identifier is registered.
This is a convenience method that helps out plugins doing dynamic registration.
void QSensorManager::registerBackend(const QByteArray & type, const QByteArray & identifier, QSensorBackendFactory * factory) [static]
Register a sensor for type. The identifier must be unique.
The factory will be asked to create instances of the backend.
void QSensorManager::setDefaultBackend(const QByteArray & type, const QByteArray & identifier) [static]
Sets or overwrite the sensor type with the backend identifier.
void QSensorManager::unregisterBackend(const QByteArray & type, const QByteArray & identifier) [static]
Unregister the backend for type with identifier.
Note that this only prevents new instance of the backend from being created. It does not invalidate the existing instances of the backend. The backend code should handle the disappearance of the underlying hardware itself.