2 #ifndef PYINTERP_WATCHER_H
3 #define PYINTERP_WATCHER_H
5 #include "PyInterp.h" // !!! WARNING !!! THIS INCLUDE MUST BE THE VERY FIRST !!!
7 #include "PyInterp_Dispatcher.h"
11 // Private class that keeps track of destructions of request listeners
13 class PyInterp_Watcher : public QObject
18 PyInterp_Watcher() : QObject( 0 ) {}
19 virtual ~PyInterp_Watcher() {}
22 void onDestroyed( QObject* o ) { PyInterp_Dispatcher::Get()->objectDestroyed( o ); }
25 #endif // PYINTERP_WATCHER_H