Simplified XF 1.1.0
|
Interface to receive and process events. More...
#include <behavior.h>
Public Types | |
using | TerminateBehavior = bool |
Type returned by the process() method. | |
Public Member Functions | |
virtual void | startBehavior ()=0 |
Starts the behavior. More... | |
virtual void | pushEvent (XFEvent *pEvent)=0 |
Injects an event into the class. More... | |
virtual bool | deleteOnTerminate () const =0 |
Tells XF to delete behavior when receiving terminate event. More... | |
virtual void | setDeleteOnTerminate (bool deleteBehaviour)=0 |
Sets/Clears the 'delete on terminate' property. More... | |
Protected Member Functions | |
virtual TerminateBehavior | process (const XFEvent *pEvent)=0 |
Called by the dispatcher to process an event. | |
Friends | |
class | ::XFDispatcher |
class | ::XFDispatcherPort |
Interface to receive and process events.
Interface that needs to be implemented by every class having a behavior. Interface methods are needed by the other parts of the XF.
This interface is used by the dispatcher to process events.
|
pure virtual |
Tells XF to delete behavior when receiving terminate event.
Implemented in XFBehavior.
|
pure virtual |
Injects an event into the class.
Implemented in XFBehavior.
|
pure virtual |
Sets/Clears the 'delete on terminate' property.
Implemented in XFBehavior.
|
pure virtual |
Starts the behavior.
Implemented in XFBehavior.