Salome HOME
Merge branch 'Dev_0.6.1' of newgeom:newgeom into Dev_0.6.1
[modules/shaper.git] / src / Events / Events_LongOp.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        Events_LongOp.h
4 // Created:     29 Jul 2014
5 // Author:      Mikhail PONIKAROV
6
7 #ifndef EVENTS_LONGOP_H_
8 #define EVENTS_LONGOP_H_
9
10 #include <Events.h>
11 #include <Events_Message.h>
12
13 /**
14  * Informs the application that the long operation is performed.
15  * Causes waiting coursor in GUI.
16  */
17 class EVENTS_EXPORT Events_LongOp : public Events_Message
18 {
19  public:
20   virtual ~Events_LongOp();
21   /// Returns the identifier of this event
22   static Events_ID eventID();
23   /// Starts the long operation
24   static void start(void* theSender = 0);
25   /// Stops the long operation
26   static void end(void* theSender = 0);
27   /// Returns true if the long operation is performed
28   static bool isPerformed();
29
30  protected:
31   Events_LongOp(void* theSender = 0);
32 };
33
34 #endif /* EVENTS_ERROR_H_ */