Salome HOME
Initialisation de la base KERNEL avec la version operationnelle de KERNEL_SRC issue...
[modules/kernel.git] / src / Session / SALOME_Session_QThread.hxx
1 //=============================================================================
2 // File      : SALOME_Session_QThread.hxx
3 // Created   : mar jun 19 14:38:31 CEST 2001
4 // Author    : Paul RASCLE, EDF
5 // Project   : SALOME
6 // Copyright : EDF 2001
7 // $Header$
8 //=============================================================================
9
10 #ifndef _SALOME_SESSION_QTHREAD_HXX_
11 #define _SALOME_SESSION_QTHREAD_HXX_
12
13 #include <qthread.h> 
14 class QApplication;
15
16 class SALOMEGUI_Application;
17 class SALOME_NamingService;
18
19
20 //! Qt thread class for the GUI
21 class SALOME_Session_QThread: public QThread
22 {
23
24 public:
25   SALOME_Session_QThread(int argc, char ** argv) ;
26
27   //! launch the Qt main window of the GUI on a separate thread
28   virtual void run() ;
29
30   //! set the naming service
31   void setNamingService(SALOME_NamingService *ns);
32
33 protected:
34   int _argc ;
35   char ** _argv;
36   int _ret ;
37   SALOME_NamingService *_NS;
38   QApplication *_qappl ;
39
40   SALOMEGUI_Application* _mw ;
41 } ;
42
43 #endif