sensorfw: sensors/contextplugin/contextsensor.h Source File

sensorfw

contextsensor.h
Go to the documentation of this file.
1
25#ifndef CONTEXT_SENSOR_CHANNEL_H
26#define CONTEXT_SENSOR_CHANNEL_H
27
28#include "abstractsensor.h"
29#include "orientationbin.h"
30#include "compassbin.h"
31#include "stabilitybin.h"
32
33 class ContextSensorChannel : public AbstractSensorChannel
34{
35 Q_OBJECT
36
37public:
38 virtual ~ContextSensorChannel();
39
40 static AbstractSensorChannel* factoryMethod(const QString& id)
41 {
42 ContextSensorChannel* sc = new ContextSensorChannel(id);
43 return sc;
44 }
45
46protected:
47 ContextSensorChannel(const QString& id);
48
49private:
50 ContextProvider::Service service;
51 OrientationBin orientationBin;
52 CompassBin* compassBin;
53 StabilityBin stabilityBin;
54};
55
56#endif
CompassBin
Definition compassbin.h:39
ContextSensorChannel
Definition contextsensor.h:34
ContextSensorChannel::~ContextSensorChannel
virtual ~ContextSensorChannel()
ContextSensorChannel::factoryMethod
static AbstractSensorChannel * factoryMethod(const QString &id)
Definition contextsensor.h:40
ContextSensorChannel::ContextSensorChannel
ContextSensorChannel(const QString &id)
OrientationBin
Definition orientationbin.h:44
StabilityBin
Definition stabilitybin.h:47
compassbin.h
Compass Bin for ContextFW.
orientationbin.h
Orientation Bin for ContextFW.
stabilitybin.h
Stability Bin for ContextFW.