sensorfw: sensors/contextplugin/orientationbin.h Source File

sensorfw

orientationbin.h
Go to the documentation of this file.
1
26#ifndef ORIENTATION_BIN_H
27#define ORIENTATION_BIN_H
28
29#include "bin.h"
30#include "bufferreader.h"
31#include "abstractchain.h"
32#include "datatypes/orientationdata.h"
33#include "posedata.h"
34
35#include "screeninterpreterfilter.h"
36
37#include <ContextProvider>
38
39#include <QPair>
40
41class DeviceAdaptor;
42
43 class OrientationBin : public QObject, Bin
44{
45 Q_OBJECT
46
47public:
48 OrientationBin(ContextProvider::Service& service);
49 ~OrientationBin();
50
51private Q_SLOTS:
52 void startRun();
53 void stopRun();
54
55private:
56 ContextProvider::Property topEdgeProperty;
57 ContextProvider::Property isCoveredProperty;
58 ContextProvider::Property isFlatProperty;
59 ContextProvider::Group group;
60
61 BufferReader<AccelerationData> accelerometerReader;
62 BufferReader<PoseData> topEdgeReader;
63 BufferReader<PoseData> faceReader;
64
65 AbstractChain* orientationChain;
66 ScreenInterpreterFilter screenInterpreterFilter;
67
68 int sessionId;
69
70 static const int POLL_INTERVAL;
71};
72
73#endif
BufferReader
Definition accelerometersensor.h:38
OrientationBin
Definition orientationbin.h:44
OrientationBin::~OrientationBin
~OrientationBin()
OrientationBin::OrientationBin
OrientationBin(ContextProvider::Service &service)
ScreenInterpreterFilter
Filter for providing the Screen.TopEdge, Position.IsFlat, and Screen.IsCovered context properties.
Definition screeninterpreterfilter.h:48
orientationdata.h
Datatypes for different filters.
posedata.h
Datatype for device 'pose' (orientation)
screeninterpreterfilter.h
ScreenInterpreterFilter.