Salome HOME
Merge remote-tracking branch 'remotes/origin/master'
[modules/shaper.git] / src / PyInterp / PyInterp_Watcher.h
1
2 #ifndef PYINTERP_WATCHER_H
3 #define PYINTERP_WATCHER_H
4
5 #include "PyInterp.h"   // !!! WARNING !!! THIS INCLUDE MUST BE THE VERY FIRST !!!
6
7 #include "PyInterp_Dispatcher.h"
8
9 #include <QObject>
10
11 // Private class that keeps track of destructions of request listeners
12 class PYINTERP_EXPORT PyInterp_Watcher : public QObject
13 {                                           
14   Q_OBJECT
15
16 public:
17   PyInterp_Watcher() : QObject( 0 ) {}
18   virtual ~PyInterp_Watcher() {}
19
20 public slots:
21   void onDestroyed( QObject* o ) { PyInterp_Dispatcher::Get()->objectDestroyed( o ); }
22 };
23
24 #endif // PYINTERP_WATCHER_H