diff options
author | Lorn Potter <lorn.potter@nokia.com> | 2011-11-11 10:46:31 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-14 06:54:31 +0100 |
commit | d95c5fee483816558246586c4621d96c84b224c0 (patch) | |
tree | 6d458feddc453baf26ef85130f8447e8d0d2a6ab /src/sensors/qsensorplugin.h | |
parent | 1f20d5ef3e27981e2af2c6533656694ea3335678 (diff) |
remove qmobilitypluginsearch and use the QFactoryLoader instead.
Change-Id: Ifdd2031d309a5ac4cbeedc5d7cdb6ba9cbb845c3
Reviewed-by: Lincoln Ramsay <lincoln.ramsay@nokia.com>
Sanity-Review: Lincoln Ramsay <lincoln.ramsay@nokia.com>
Diffstat (limited to 'src/sensors/qsensorplugin.h')
-rw-r--r-- | src/sensors/qsensorplugin.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/sensors/qsensorplugin.h b/src/sensors/qsensorplugin.h index 17308ca7..c2f417b5 100644 --- a/src/sensors/qsensorplugin.h +++ b/src/sensors/qsensorplugin.h @@ -50,10 +50,15 @@ QT_BEGIN_NAMESPACE -class Q_SENSORS_EXPORT QSensorPluginInterface +#define QSensorFactoryInterface_iid "com.nokia.Qt.QSensorPluginInterface/1.0" + +class Q_SENSORS_EXPORT QSensorPluginInterface : public QFactoryInterface { + public: virtual void registerSensors() = 0; + virtual QStringList keys() const = 0; + protected: ~QSensorPluginInterface() {} }; @@ -68,7 +73,7 @@ protected: QT_END_NAMESPACE -Q_DECLARE_INTERFACE(QSensorPluginInterface, "com.nokia.Qt.QSensorPluginInterface/1.0"); +Q_DECLARE_INTERFACE(QSensorPluginInterface, QSensorFactoryInterface_iid); Q_DECLARE_INTERFACE(QSensorChangesInterface, "com.nokia.Qt.QSensorChangesInterface/1.0"); #endif |