customevent.h
#ifndef XF_CUSTOMEVENT_H
#define XF_CUSTOMEVENT_H
#include "xf/event.h"
class XFCustomEvent : public XFEvent
{
public:
XFCustomEvent(int id, interface::XFBehavior * pBehavior = nullptr);
bool deleteAfterConsume() const override { return bDeleteAfterConsume_; }
protected:
void setDeleteAfterConsume(bool bDeleteAfterConsume = true) { bDeleteAfterConsume_ = bDeleteAfterConsume; }
protected:
bool bDeleteAfterConsume_;
};
// end of xf_core group
#endif // XF_CUSTOMEVENT_H
XFCustomEvent
Base class for project related events.
Definition: customevent.h:22
XFCustomEvent::setDeleteAfterConsume
void setDeleteAfterConsume(bool bDeleteAfterConsume=true)
Setter for bDeleteAfterConsume_ attribute.
Definition: customevent.h:43
XFCustomEvent::deleteAfterConsume
bool deleteAfterConsume() const override
Tells the XF if the event should be deleted after processing.
Definition: customevent.h:36
XFCustomEvent::XFCustomEvent
XFCustomEvent(int id, interface::XFBehavior *pBehavior=nullptr)
XFCustomEvent::bDeleteAfterConsume_
bool bDeleteAfterConsume_
True if the XF should delete event after consumption/dispatching.
Definition: customevent.h:46
XFEvent
Base class for all types of events and timeouts.
Definition: event.h:23
interface::XFBehavior
Interface to receive and process events.
Definition: behavior.h:24