Kallisto Linux API
Library for interacting with Kallisto devices
bluetooth_scan_event_listener.hpp
Go to the documentation of this file.
1 
42 #ifndef BLUETOOTH_SCAN_EVENT_LISTENER_HPP
43 #define BLUETOOTH_SCAN_EVENT_LISTENER_HPP
44 
45 #include <chrono>
46 
47 namespace kallisto {
48 
49 namespace hardware {
50 class Kallisto; //Forward declaration to prevent circular dependencies.
51 } /* namespace hardware */
52 
53 namespace bluetooth {
54 
58 class BluetoothScanEventListener {
59 protected:
63  virtual ~BluetoothScanEventListener();
64 
65 public:
69  BluetoothScanEventListener();
70 
77  virtual void onDeviceFound(std::chrono::nanoseconds timestamp, hardware::Kallisto& device) = 0;
78 
86  virtual void onDeviceLost(std::chrono::nanoseconds timestamp, hardware::Kallisto& device);
87 
95  virtual void onDeviceScanReport(std::chrono::nanoseconds timestamp, hardware::Kallisto& device, int rssi);
96 };
97 
98 } /* namespace hardware */
99 } /* namespace kallisto */
100 
101 #endif // BLUETOOTH_SCAN_EVENT_LISTENER_HPP
102 
Definition: bluetooth_adapter.hpp:52