1 //=============================================================================
2 // File : SALOME_Session_i.hxx
3 // Created : mar jun 19 13:42:55 CEST 2001
4 // Author : Paul RASCLE, EDF
6 // Copyright : EDF 2001
8 //=============================================================================
10 #ifndef _SALOME_SESSION_I_HXX_
11 #define _SALOME_SESSION_I_HXX_
15 #include <SALOMEconfig.h>
16 #include CORBA_SERVER_HEADER(SALOME_Component)
17 //***//#include CORBA_SERVER_HEADER(VISU_Gen)
18 #include CORBA_SERVER_HEADER(SALOME_Session)
19 class SALOME_NamingService;
20 class SALOME_Session_QThread;
22 //! CORBA SALOME Session Servant
24 class SALOME_Session_i: public POA_SALOME::Session,
25 public PortableServer::RefCountServantBase
28 SALOME_Session_i(int argc, char ** argv, CORBA::ORB_ptr orb, PortableServer::POA_ptr poa) ;
31 //! Launch Graphical User Interface
33 //***//VISU::VISU_Gen_ptr GetVisuGen();
34 Engines::Component_ptr GetVisuComponent();
36 //! Stop the Session (must be idle): kill servant & server
40 SALOME::StatSession GetStatSession();
42 //! Register the servant to Naming Service
48 //! A QT Thread for the GUI
49 SALOME_Session_QThread *_IAPPThread ;
51 //! Naming service interface
52 SALOME_NamingService *_NS;
56 CORBA::Boolean _isGUI ;
60 PortableServer::POA_var _poa;