2016-06-15 23:48:41 +02:00
|
|
|
#ifndef FRAMEWORK_FDIR_EVENTCORRELATION_H_
|
|
|
|
#define FRAMEWORK_FDIR_EVENTCORRELATION_H_
|
|
|
|
|
2020-08-13 20:53:35 +02:00
|
|
|
#include "../timemanager/Countdown.h"
|
2016-06-15 23:48:41 +02:00
|
|
|
|
|
|
|
class EventCorrelation {
|
2022-02-02 10:29:30 +01:00
|
|
|
public:
|
|
|
|
enum State { CORRELATION_STARTED, CORRELATED, ALREADY_STARTED };
|
|
|
|
EventCorrelation(uint32_t timeout);
|
|
|
|
~EventCorrelation();
|
|
|
|
EventCorrelation::State doesEventCorrelate();
|
|
|
|
bool isEventPending();
|
|
|
|
bool hasPendingEventTimedOut();
|
|
|
|
Countdown correlationTimer;
|
|
|
|
|
|
|
|
private:
|
|
|
|
bool eventPending;
|
2016-06-15 23:48:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* FRAMEWORK_FDIR_EVENTCORRELATION_H_ */
|