Salome HOME
Avoid FileNotFound exception
[modules/kernel.git] / idl / SALOME_Session.idl
index 48bbdada12d82a53e084cbacbbff4ae7ee176e8c..a1174f1498eb6085590524e5d7254b9207b5c2d3 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2021  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -6,7 +6,7 @@
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 //
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
+
 //  File   : SALOME_Session.idl
 //  Author : Paul RASCLE, EDF
 
 #include "SALOME_Component.idl"
+#include "SALOME_GenericObj.idl"
 
 /*! \file SALOME_Session.idl \brief file that contains interface of the session
  */
@@ -50,11 +52,10 @@ module SALOME
 
    It can be:
         -# asleep  : no running study
-        -# running : one or more running studies
+        -# running : one running study
 */
     SessionState state ;
-    //! Number of running studies
-    short        runningStudies ;
+
     //! It is True if GUI is active in the session
     boolean      activeGUI ;
   } ;
@@ -69,8 +70,8 @@ module SALOME
   {
 //!  This exception is raised when trying to stop the %session with active GUI
     exception GUIActive {} ;
-//!  This exception is raised when trying to stop the %session with a number of running studies.
-    exception RunningStudies {} ;
+//!  This exception is raised when trying to stop the %session with running study.
+    exception RunningStudy {} ;
 
 //!  Launches GUI in the session
     void GetInterface();
@@ -79,7 +80,7 @@ module SALOME
     Engines::EngineComponent GetComponent(in string theLibraryName);
 
 //!  Stops the %Session (It must be idle)
-    void StopSession() raises(GUIActive, RunningStudies) ;
+    void StopSession() raises(GUIActive, RunningStudy) ;
 
 //!  Gets Session State
     StatSession GetStatSession() ;
@@ -93,11 +94,12 @@ module SALOME
     long getPID();
 //!  Returns host name
     string getHostname();
-//!  Get Active study ID
-    long GetActiveStudyId();
 //!  Restores a state of the study at theSavePoint
     boolean restoreVisualState(in long theSavePoint);
 
+//! Get list of selected entities
+    StringSeq getSelection();
+
  //! Send a message to the session GUI desktop that will emit a qt signal
 /*!
     This method can be used to send a message to the GUI from the standalone