finish timeout implementation

This commit is contained in:
Rémi Heredero 2023-10-01 17:52:02 +02:00
parent eeb8e22117
commit dc5912187a

View File

@ -1,9 +1,17 @@
#include "xf/timeout.h"
// TODO: Implement code for XFTimeout class
// TODO done: Implement code for XFTimeout class
XFTimeout::XFTimeout(int id, int interval, interface::XFBehavior *pBehavior):
XFEvent(XFEventType::Timeout, id), interval_(interval) {
}
bool XFTimeout::operator ==(const XFTimeout &timeout) const {
bool i = (id_ == timeout.id_);
bool b = (pBehavior_ == timeout.pBehavior_);
return (i && b);
}
bool XFTimeout::deleteAfterConsume() const {
return true;
}