Salome HOME
6fee83e6ae91c81ce1694ca59d649e84eeed3fdf
[modules/gui.git] / src / PyInterp / PyInterp_Watcher.h
1 #ifndef _PYINTERP_WATCHER_H_
2 #define _PYINTERP_WATCHER_H_
3
4 #include <PyInterp.h>
5
6 #include <PyInterp_Dispatcher.h>
7
8 #include <qobject.h>
9
10 // Private class that keeps track of destructions of request listeners
11 class PYINTERP_EXPORT PyInterp_Watcher : public QObject
12 {                                           
13   Q_OBJECT
14
15 public:
16   PyInterp_Watcher() : QObject( 0 ) {}
17   virtual ~PyInterp_Watcher() {}
18
19 public slots:
20   void onDestroyed( QObject* o ) { PyInterp_Dispatcher::Get()->objectDestroyed( o ); }
21 };
22
23 #endif // _PYINTERP_WATCHER_H_