Kallisto Linux API
Library for interacting with Kallisto devices
|
#include <kallisto_event_listener.hpp>
Public Member Functions | |
KallistoEventListener () | |
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 |
Protected Member Functions | |
virtual | ~KallistoEventListener () |
Callback listener interface for sensor events.
|
protectedvirtual |
Destructor.
Constructor
|
virtual |
Called when the connection to a device under use is lost.
timestamp | The time at which the event happened in nanoseconds since the epoch. |
device | The device that generated the event. |
Reimplemented in KallistoCoreImpl.
|
virtual |
Called when the connection to a device under use is recovered.
timestamp | The time at which the event happened in nanoseconds since the epoch. |
device | The device that generated the event. |
Reimplemented in KallistoCoreImpl.
|
pure virtual |
Called when there is a timeout while waiting for connection recovery.
timestamp | The time at which the event happened in nanoseconds since the epoch. |
device | The device that generated the event. |
Implemented in KallistoCoreImpl.