Gateware Libraries  6.3.A
Beta Build
GListener.h
1 #ifndef GLISTENER_H
2 #define GLISTENER_H
3 
15 #include "GMultiThreaded.h"
17 
19 namespace GW
20 {
22  namespace CORE
23  {
25  static const GUUIID GListenerUUIID =
26  {
27  0x6512acfa, 0x2be3, 0x4431,{ 0xb8, 0x1c, 0x9b, 0x65, 0x39, 0x8a, 0x4c, 0x90 }
28  };
29 
31 
35  class GListener : public GMultiThreaded
36  {
37  // All Gateware API interfaces contain no variables & are pure virtual.
38  public:
40 
46  virtual GReturn OnEvent(const GUUIID& _senderInterface, unsigned int _eventID, void* _eventData, unsigned int _dataSize) = 0;
47  };
48  }// end CORE namespace
49 };// end GW namespace
50 
51 #endif
This interface is only used to label and query interfaces which promise to 100% internally support th...
Definition: GMultiThreaded.h:31
Gateware Universally Unique Interface IDentifier.
Definition: GDefines.h:25
virtual GReturn OnEvent(const GUUIID &_senderInterface, unsigned int _eventID, void *_eventData, unsigned int _dataSize)=0
This operation is called whenever a GBroadcaster a listener is registered to generates an event...
GReturn
Listing of common error codes returned by Gateware functions.
Definition: GDefines.h:53
The core namespace to which all Gateware interfaces/structures/defines must belong.
Definition: GAudio.h:20
A GListener Interface may be registered with a GBroadcaster interface to receive event notifications...
Definition: GListener.h:35