Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef _SESSION_SESSION_I_HXX_
00027 #define _SESSION_SESSION_I_HXX_
00028
00029 #include "SALOME_Session.hxx"
00030
00031 #include <SALOMEconfig.h>
00032 #include CORBA_SERVER_HEADER(SALOME_Component)
00033 #include CORBA_SERVER_HEADER(SALOME_Session)
00034 class SALOME_NamingService;
00035
00036 class QMutex;
00037 class QWaitCondition;
00038
00039 class SESSION_EXPORT SALOME_Session_i: public virtual POA_SALOME::Session,
00040 public virtual PortableServer::ServantBase
00041 {
00042 public:
00043 SALOME_Session_i(int argc,
00044 char ** argv,
00045 CORBA::ORB_ptr orb,
00046 PortableServer::POA_ptr poa,
00047 QMutex* GUIMutex,
00048 QWaitCondition* GUILauncher);
00049 ~SALOME_Session_i();
00050
00052 void GetInterface();
00053
00055 Engines::EngineComponent_ptr GetComponent(const char* theLibraryName);
00056
00058 void StopSession();
00059
00061 SALOME::StatSession GetStatSession();
00062
00064 void NSregister();
00065
00066 CORBA::Long GetActiveStudyId();
00067
00068 void ping(){};
00069 CORBA::Long getPID();
00070 char* getHostname();
00071
00073 bool restoreVisualState(CORBA::Long theSavePoint);
00074
00076 void emitMessage(const char* theMessage);
00077 void emitMessageOneWay(const char* theMessage);
00078
00079 protected:
00080
00082 SALOME_NamingService *_NS;
00083
00084 int _argc ;
00085 char **_argv;
00086 CORBA::Boolean _isGUI ;
00087 QMutex* _GUIMutex ;
00088 QWaitCondition* _GUILauncher;
00089 int _runningStudies ;
00090 CORBA::ORB_var _orb;
00091 PortableServer::POA_var _poa;
00092 };
00093
00094 #endif