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"
33 #include "posedata.h"
34 
36 
37 #include <ContextProvider>
38 
39 #include <QPair>
40 
41 class DeviceAdaptor;
42 
43 class OrientationBin : public QObject, Bin
44 {
45  Q_OBJECT
46 
47 public:
48  OrientationBin(ContextProvider::Service& service);
50 
51 private Q_SLOTS:
52  void startRun();
53  void stopRun();
54 
55 private:
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
OrientationBin(ContextProvider::Service &service)
Filter for providing the Screen.TopEdge, Position.IsFlat, and Screen.IsCovered context properties.
Datatypes for different filters.
Datatype for device 'pose' (orientation)
ScreenInterpreterFilter.