From ef4d49abf8a2e58da9ff8c93421d073c8b9f619a Mon Sep 17 00:00:00 2001 From: jfa Date: Fri, 7 Apr 2006 14:07:22 +0000 Subject: [PATCH] Move SALOME_Session.idl from GUI_SRC/idl to KERNEL_SRC/idl. --- idl/Makefile.am | 2 + idl/SALOME_Session.idl | 113 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 115 insertions(+) create mode 100644 idl/SALOME_Session.idl diff --git a/idl/Makefile.am b/idl/Makefile.am index 3f41523bf..e9957e734 100644 --- a/idl/Makefile.am +++ b/idl/Makefile.am @@ -22,6 +22,7 @@ BASEIDL_FILES = \ SALOME_Registry.idl \ Logger.idl \ SALOME_GenericObj.idl \ + SALOME_Session.idl \ SALOME_TestModuleCatalog.idl \ nstest.idl @@ -59,6 +60,7 @@ BASEIDL_SOURCES =\ SALOME_RegistrySK.cc \ LoggerSK.cc \ SALOME_GenericObjSK.cc \ + SALOME_SessionSK.cc \ SALOME_TestModuleCatalogSK.cc \ nstestSK.cc diff --git a/idl/SALOME_Session.idl b/idl/SALOME_Session.idl new file mode 100644 index 000000000..f067b753a --- /dev/null +++ b/idl/SALOME_Session.idl @@ -0,0 +1,113 @@ +// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, +// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS +// +// 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. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// +// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// +// +// +// File : SALOME_Session.idl +// Author : Paul RASCLE, EDF +// $Header$ + +#include "SALOME_Component.idl" + +/*! + This package contains interfaces used for management of the session in %SALOME application. +*/ +module SALOME +{ +/*! \brief State of the session + + This enumeration contains values defining the state of the session + +*/ + enum SessionState {asleep, /*! Session is inactive */ + running /*! Session is running */ + } ; + +/*! \brief %Session State and Statistics + + + This struct contains a field list with general information about the session +*/ + + struct StatSession + { +/*! \brief State of the session + + It can be: + * -# asleep : no running study + * -# running : one or more running studies +*/ + SessionState state ; +/*! Number of running studies +*/ + short runningStudies ; +/*! It is True if GUI is active in the session +*/ + boolean activeGUI ; + } ; +/*! \brief Interface of the session + + The %session Server launches and stops GUI (Graphical User Interface). + The %session can be active without GUI (It can contain one or more running studies) +*/ + + interface Session + { +/*! + 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 {} ; + +/*! + Launches GUI in the session +*/ + void GetInterface(); + +/*! + Returns a standalone component +*/ + Engines::Component GetComponent(in string theLibraryName); + +/*! + Stops the %Session (It must be idle) +*/ + void StopSession() raises(GUIActive, RunningStudies) ; + +/*! + Gets Session State +*/ + StatSession GetStatSession() ; +/*! + Determines whether the server has already been loaded or not. +*/ + void ping(); +/*! + Get Active study ID +*/ + long GetActiveStudyId(); +/*! + Restores a state of the study at theSavePoint +*/ + boolean restoreVisualState(in long theSavePoint); + } ; +} ; -- 2.39.2