Salome HOME
Initial version
[modules/gui.git] / src / SUIT / SUIT_ExceptionHandler.h
1 #ifndef SUIT_EXCEPTIONHANDLER_H
2 #define SUIT_EXCEPTIONHANDLER_H
3
4 #include "SUIT.h"
5
6 class QEvent;
7 class QObject;
8 class QString;
9
10 class SUIT_EXPORT SUIT_ExceptionHandler
11 {
12 public:
13   virtual bool handle( QObject*, QEvent* );
14
15 protected:
16   bool         internalHandle( QObject*, QEvent* );
17   void         showMessage( const QString&, const QString& );
18 };
19
20 extern "C"
21 {
22   typedef SUIT_ExceptionHandler* (*APP_GET_HANDLER_FUNC)();
23 }
24
25 #define APP_GET_HANDLER_NAME "getExceptionHandler"
26
27 #endif