Salome HOME
Merge branch 'master' of newgeom:newgeom.git
[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 //PYINTERP_EXPORT
13 class PyInterp_Watcher : public QObject
14 {                                           
15   Q_OBJECT
16
17 public:
18   PyInterp_Watcher() : QObject( 0 ) {}
19   virtual ~PyInterp_Watcher() {}
20
21 public slots:
22   void onDestroyed( QObject* o ) { PyInterp_Dispatcher::Get()->objectDestroyed( o ); }
23 };
24
25 #endif // PYINTERP_WATCHER_H