]> Creatis software - cpPlugins.git/blob - lib/cpBaseQtApplication/Blocker.h
yet another refactoring
[cpPlugins.git] / lib / cpBaseQtApplication / Blocker.h
1 #ifndef __cpBaseQtApplication__Blocker__h__
2 #define __cpBaseQtApplication__Blocker__h__
3
4 #include <cpBaseQtApplication_Export.h>
5 #include <QObject>
6
7 // -------------------------------------------------------------------------
8 namespace cpBaseQtApplication
9 {
10   /**
11    */
12   class cpBaseQtApplication_EXPORT Blocker
13     : public QObject
14   {
15   public:
16     Blocker( );
17     virtual ~Blocker( );
18
19     void block( );
20     void unblock( );
21
22   protected:
23     virtual bool eventFilter( QObject* obj, QEvent* event );
24   };
25
26 } // ecapseman
27
28 #endif // __cpBaseQtApplication__Blocker__h__
29
30 // eof - $RCSfile$