Salome HOME
Merge branch 'master' of newgeom:newgeom
[modules/shaper.git] / src / Events / Events_Listener.h
1 // File:        Events_Listener.hxx
2 // Created:     Thu Mar 13 2014
3 // Author:      Mikhail PONIKAROV
4
5 #ifndef Events_Listener_HeaderFile
6 #define Events_Listener_HeaderFile
7
8 #include <Events.h>
9 class Events_Message;
10
11 /**\class Events_Listener
12  * \ingroup EventsLoop
13  * \brief Base interface for any event listener.
14  *
15  * If some object wants to listen some events it must inherit
16  * this class and register in the Loop.
17  */
18 class EVENTS_EXPORT Events_Listener {
19
20 public:
21   //! This method is called by loop when the event is started to process.
22   virtual void processEvent(const Events_Message* theMessage) = 0;
23 };
24
25 #endif