28 std::function<void(
bool)> onEventStatusChanged;
33 explicit Debouncer(std::function<
void(
bool)> callback);
Debouncing mechanism interface.
Definition: debouncer.h:24
void SetEventStatus(EventStatus status)
Set the monitored event status.
Definition: debouncer.cpp:14
virtual void ReportFailed()=0
Report finally failed of the monitored event.
virtual void Freeze()=0
Freeze the debouncing mechanism.
virtual void ReportPassed()=0
Report finally passed of the monitored event.
virtual void ReportPrepassed()=0
Report pre-passed of the monitored event.
virtual void Reset()=0
Reset the debouncing mechanism.
virtual void ReportPrefailed()=0
Report pre-failed of the monitored event.
Debouncer(std::function< void(bool)> callback)
Constructor.
Definition: debouncer.cpp:9
EventStatus
Monitored event status.
Definition: debouncer.h:16
@ kPending
!< Finally healed event
Definition: debouncer.h:18
@ kFailed
!< Pending status event
Definition: debouncer.h:19