1 #ifndef SCXML_EVENTTARGET_H
2 #define SCXML_EVENTTARGET_H
36 #include <Inventor/scxml/ScXMLObject.h>
37 #include <Inventor/tools/SbPimplPtr.h>
55 virtual void setEventTargetType(
const char * targettype);
56 const char * getEventTargetType(
void)
const {
return this->targettype; }
58 virtual void setEventTargetName(
const char * targetname);
59 const char * getEventTargetName(
void)
const {
return this->targetname; }
64 virtual void queueEvent(
const ScXMLEvent * event);
65 virtual void queueEvent(
const SbName & eventid);
67 virtual SbBool processEventQueue(
void);
70 virtual SbBool sendExternalEvent(
const ScXMLSendElt * sendelt);
71 virtual SbBool sendInternalEvent(
const ScXMLEventElt * sendelt);
73 virtual void queueInternalEvent(
const ScXMLEvent * event);
74 virtual void queueInternalEvent(
const SbName & eventid);
81 SbBool isprocessingqueue;
83 virtual void setCurrentEvent(
const ScXMLEvent * event);
85 virtual const ScXMLEvent * getNextInternalEvent(
void);
86 virtual const ScXMLEvent * getNextExternalEvent(
void);
88 virtual SbBool processOneEvent(
const ScXMLEvent * event);
90 static void registerEventTarget(
ScXMLEventTarget * target,
const char * sessionid = NULL);
91 static void unregisterEventTarget(
ScXMLEventTarget * target,
const char * sessionid = NULL);
93 static ScXMLEventTarget * getEventTarget(
const char * targettype,
const char * targetname,
const char * sessionid = NULL);
100 SbPimplPtr<PImpl> pimpl;
104 #endif // !SCXML_EVENTTARGET_H