Kallisto Linux API
Library for interacting with Kallisto devices
kallisto_event_listener.hpp
Go to the documentation of this file.
1 
42 #ifndef KALLISTO_EVENT_LISTENER_HPP
43 #define KALLISTO_EVENT_LISTENER_HPP
44 
45 #include <memory>
46 #include <vector>
47 #include <chrono>
48 
49 namespace kallisto {
50 namespace hardware {
51 
52 class Kallisto; //Forward declaration to prevent circular dependencies.
53 
57 class KallistoEventListener {
58 protected:
62  virtual ~KallistoEventListener();
63 
64 public:
69 
75  virtual void onLinkLoss(std::chrono::nanoseconds timestamp, Kallisto& device);
76 
82  virtual void onLinkRecovered(std::chrono::nanoseconds timestamp, Kallisto& device);
83 
89  virtual void onLinkRemoved(std::chrono::nanoseconds timestamp, Kallisto& device) = 0;
90 };
91 
92 } /* namespace hardware */
93 } /* namespace kallisto */
94 
95 #endif // KALLISTO_EVENT_LISTENER_HPP
Definition: bluetooth_adapter.hpp:52
virtual void onLinkLoss(std::chrono::nanoseconds timestamp, Kallisto &device)
virtual void onLinkRecovered(std::chrono::nanoseconds timestamp, Kallisto &device)
virtual void onLinkRemoved(std::chrono::nanoseconds timestamp, Kallisto &device)=0