Skip to content

Commit

Permalink
[sensorfw] Use Q_OBJECT on all plugin classes to make them loadable.
Browse files Browse the repository at this point in the history
moc needs Q_OBJECT before it parses Q_PLUGIN_METADATA, so this never worked.
  • Loading branch information
rburchell committed Jun 13, 2013
1 parent 1d8d00d commit 2a18fdb
Show file tree
Hide file tree
Showing 42 changed files with 43 additions and 1 deletion.
1 change: 1 addition & 0 deletions adaptors/accelerometeradaptor/accelerometeradaptorplugin.h
Expand Up @@ -30,6 +30,7 @@

class AccelerometerAdaptorPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions adaptors/alsadaptor-ascii/alsadaptor-asciiplugin.h
Expand Up @@ -36,6 +36,7 @@

class ALSAdaptorAsciiPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
3 changes: 2 additions & 1 deletion adaptors/alsadaptor-sysfs/alsadaptor-sysfsplugin.h
Expand Up @@ -31,8 +31,9 @@

class ALSAdaptorSysfsPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif

private:
Expand Down
1 change: 1 addition & 0 deletions adaptors/alsadaptor/alsadaptorplugin.h
Expand Up @@ -30,6 +30,7 @@

class ALSAdaptorPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions adaptors/gyroscopeadaptor/gyroscopeadaptorplugin.h
Expand Up @@ -31,6 +31,7 @@

class GyroscopeAdaptorPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions adaptors/kbslideradaptor/kbslideradaptorplugin.h
Expand Up @@ -30,6 +30,7 @@

class KeyboardSliderAdaptorPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions adaptors/magnetometeradaptor/magnetometeradaptorplugin.h
Expand Up @@ -30,6 +30,7 @@

class MagnetometerAdaptorPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
Expand Up @@ -29,6 +29,7 @@

class MRSTAccelerometerAdaptorPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
Expand Up @@ -5,6 +5,7 @@

class OaktrailAccelerometerAdaptorPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
Expand Up @@ -5,6 +5,7 @@

class OemtabletAccelerometerAdaptorPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
Expand Up @@ -5,6 +5,7 @@

class OEMTabletALSAdaptorAsciiPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
Expand Up @@ -5,6 +5,7 @@

class OEMTabletGyroscopeAdaptorPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
Expand Up @@ -5,6 +5,7 @@

class OemtabletMagnetometerAdaptorPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
Expand Up @@ -5,6 +5,7 @@

class PegatronAccelerometerAdaptorPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
Expand Up @@ -35,6 +35,7 @@

class ProximityAdaptorAsciiPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
Expand Up @@ -31,6 +31,7 @@

class ProximityAdaptorEvdevPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions adaptors/proximityadaptor/proximityadaptorplugin.h
Expand Up @@ -31,6 +31,7 @@

class ProximityAdaptorPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
Expand Up @@ -5,6 +5,7 @@

class SteAccelerometerAdaptorPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions adaptors/tapadaptor/tapadaptorplugin.h
Expand Up @@ -30,6 +30,7 @@

class TapAdaptorPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions adaptors/touchadaptor/touchadaptorplugin.h
Expand Up @@ -30,6 +30,7 @@

class TouchAdaptorPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions chains/accelerometerchain/accelerometerchainplugin.h
Expand Up @@ -30,6 +30,7 @@

class AccelerometerChainPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions chains/orientationchain/orientationchainplugin.h
Expand Up @@ -30,6 +30,7 @@

class OrientationChainPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions examples/adaptorplugin/sampleadaptorplugin.h
Expand Up @@ -30,6 +30,7 @@

class SampleAdaptorPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions examples/chainplugin/samplechainplugin.h
Expand Up @@ -30,6 +30,7 @@

class SampleChainPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions examples/filterplugin/samplefilterplugin.h
Expand Up @@ -30,6 +30,7 @@

class SampleFilterPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions examples/sensorplugin/sampleplugin.h
Expand Up @@ -30,6 +30,7 @@

class SamplePlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
Expand Up @@ -30,6 +30,7 @@

class CoordinateAlignFilterPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions filters/declinationfilter/declinationfilterplugin.h
Expand Up @@ -30,6 +30,7 @@

class DeclinationFilterPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions filters/downsamplefilter/downsamplefilterplugin.h
Expand Up @@ -30,6 +30,7 @@

class DownsampleFilterPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
Expand Up @@ -30,6 +30,7 @@

class OrientationInterpreterPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions filters/rotationfilter/rotationfilterplugin.h
Expand Up @@ -30,6 +30,7 @@

class RotationFilterPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions sensors/accelerometersensor/accelerometerplugin.h
Expand Up @@ -30,6 +30,7 @@

class AccelerometerPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions sensors/alssensor/alsplugin.h
Expand Up @@ -30,6 +30,7 @@

class ALSPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions sensors/compasssensor/compassplugin.h
Expand Up @@ -30,6 +30,7 @@

class CompassPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions sensors/contextplugin/contextplugin.h
Expand Up @@ -29,6 +29,7 @@

class ContextPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions sensors/gyroscopesensor/gyroscopeplugin.h
Expand Up @@ -31,6 +31,7 @@

class GyroscopePlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions sensors/magnetometersensor/magnetometerplugin.h
Expand Up @@ -30,6 +30,7 @@

class MagnetometerPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions sensors/orientationsensor/orientationplugin.h
Expand Up @@ -30,6 +30,7 @@

class OrientationPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions sensors/proximitysensor/proximityplugin.h
Expand Up @@ -30,6 +30,7 @@

class ProximityPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions sensors/rotationsensor/rotationplugin.h
Expand Up @@ -30,6 +30,7 @@

class RotationPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions sensors/tapsensor/tapplugin.h
Expand Up @@ -30,6 +30,7 @@

class TapPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down
1 change: 1 addition & 0 deletions tests/benchmark/fakeadaptor/fakeadaptorplugin.h
Expand Up @@ -30,6 +30,7 @@

class FakeAdaptorPlugin : public Plugin
{
Q_OBJECT
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
Q_PLUGIN_METADATA(IID "com.nokia.SensorService.Plugin/1.0")
#endif
Expand Down

0 comments on commit 2a18fdb

Please sign in to comment.