Kallisto Linux API
Library for interacting with Kallisto devices
time_synchronizer.hpp
Go to the documentation of this file.
1 
42 #ifndef TIME_SYNCHRONIZER_HPP_
43 #define TIME_SYNCHRONIZER_HPP_
44 
45 #include "../../../util/error/kallisto_error.hpp"
46 #include "../../../bluetooth/device/bluetooth_dispatcher.hpp"
47 #include "../sensors/sensor_event_listener.hpp"
48 
49 namespace kallisto {
50 namespace hardware {
51 
52 class KallistoImpl;
53 
57 class TimeSynchronizer {
58 protected:
60  bluetooth::BluetoothDispatcher * m_dispatcher;
61 
65  TimeSynchronizer(TimeSynchronizer const&) = delete;
67  void operator=(TimeSynchronizer const&) = delete;
68  void operator=(TimeSynchronizer &&) = delete;
69 
70 public:
74  TimeSynchronizer(bluetooth::BluetoothDispatcher& dispatcher);
75 
79  virtual ~TimeSynchronizer();
80 
85  virtual error::KallistoDetailedResult sync() = 0;
86 
92  virtual error::KallistoDetailedResult syncSensorEvent(Sensor& sensor, SensorEvent& event) = 0;
93 };
94 
95 } /* namespace bluetooth */
96 } /* namespace kallisto */
97 
98 #endif /* TIME_SYNCHRONIZER_HPP_ */
TimeSynchronizer(TimeSynchronizer const &)=delete
Definition: bluetooth_adapter.hpp:52
bluetooth::BluetoothDispatcher * m_dispatcher
Definition: time_synchronizer.hpp:59
virtual error::KallistoDetailedResult syncSensorEvent(Sensor &sensor, SensorEvent &event)=0
virtual error::KallistoDetailedResult sync()=0