Salome HOME
Copyright update 2022
[modules/kernel.git] / src / Launcher / SALOME_ExternalServerHandler.hxx
index 045ec4c50760ac4028b8bf4fcd8fff48c2a84b09..b7303db0152248271508963a49834021a4e2ace4 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2019  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2019-2022  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 
 #include <string>
 
-class SALOME_NamingService;
+class SALOME_NamingService_Abstract;
 class SALOME_ExternalServerLauncher;
 class SALOME_CPythonHelper;
 
 class SALOMELAUNCHER_EXPORT SALOME_ExternalServerHandler : public POA_SALOME::ExternalServerHandler
 {
  public:
-  SALOME_ExternalServerHandler(SALOME_ExternalServerLauncher *boss, const std::string& name, SALOME_NamingService *ns, long pid);
+  SALOME_ExternalServerHandler(SALOME_ExternalServerLauncher *boss, const std::string& name, SALOME_NamingService_Abstract *ns, long pid);
   virtual ~SALOME_ExternalServerHandler();
   void registerToKill(const SALOME_CPythonHelper *pyHelper) const;
+  static void KillPID(long pid);
  public:
   CORBA::Long getPID() override;
   char *getName() override;
@@ -48,7 +49,7 @@ class SALOMELAUNCHER_EXPORT SALOME_ExternalServerHandler : public POA_SALOME::Ex
  private:
   std::string _name;
   long _pid;
-  SALOME_NamingService *_NS;
+  SALOME_NamingService_Abstract *_NS;
   SALOME_ExternalServerLauncher *_boss;
   static unsigned CNT;
 };