Salome HOME
Introduce Long Operation event: now for waiting cursor only
[modules/shaper.git] / src / Events / Events_LongOp.h
1 // File:        Events_LongOp.h
2 // Created:     29 Jul 2014
3 // Author:      Mikhail PONIKAROV
4
5 #ifndef EVENTS_LONGOP_H_
6 #define EVENTS_LONGOP_H_
7
8 #include <Events.h>
9 #include <Events_Message.h>
10
11 /**
12  * Informs the application that the long operation is performed.
13  * Causes waiting coursor in GUI.
14  */
15 class EVENTS_EXPORT Events_LongOp: public Events_Message
16 {
17 public:
18   virtual ~Events_LongOp();
19   /// Returns the identifier of this event
20   static Events_ID errorID();
21   /// Starts the long operation
22   static void start(void* theSender = 0);
23   /// Stops the long operation
24   static void end(void* theSender = 0);
25   /// Returns true if the long operation is performed
26   static bool isPerformed(); 
27
28 protected:
29   Events_LongOp(void* theSender = 0);
30 };
31
32 #endif /* EVENTS_ERROR_H_ */