Simplified XF 1.1.0

customevent.h
1#ifndef XF_CUSTOMEVENT_H
2#define XF_CUSTOMEVENT_H
3
4#include "xf/event.h"
5
21 class XFCustomEvent : public XFEvent
22{
23 public:
30 XFCustomEvent(int id, interface::XFBehavior * pBehavior = nullptr);
31
36 bool deleteAfterConsume() const override { return bDeleteAfterConsume_; }
37
38 protected:
43 void setDeleteAfterConsume(bool bDeleteAfterConsume = true) { bDeleteAfterConsume_ = bDeleteAfterConsume; }
44
45 protected:
46 bool bDeleteAfterConsume_;
47};
48 // end of xf_core group
50#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