< prev index next >

src/jdk.incubator.jpackage/unix/native/libapplauncher/PosixPlatform.h

Print this page




  27 #define POSIXPLATFORM_H
  28 
  29 #include "Platform.h"
  30 #include <signal.h>
  31 
  32 class PosixPlatform : virtual public Platform {
  33 protected:
  34 
  35     TString fixName(const TString& name);
  36 
  37     virtual TString getTmpDirString() = 0;
  38 
  39 public:
  40     PosixPlatform(void);
  41     virtual ~PosixPlatform(void);
  42 
  43 public:
  44     virtual MessageResponse ShowResponseMessage(TString title,
  45             TString description);
  46 
  47     virtual void SetCurrentDirectory(TString Value);
  48 
  49     virtual Module LoadLibrary(TString FileName);
  50     virtual void FreeLibrary(Module AModule);
  51     virtual Procedure GetProcAddress(Module AModule, std::string MethodName);
  52 
  53     virtual Process* CreateProcess();
  54     virtual TString GetTempDirectory();
  55     void InitStreamLocale(wios *stream);
  56     void addPlatformDependencies(JavaLibrary *pJavaLibrary);
  57 };
  58 
  59 class PosixProcess : public Process {
  60 private:
  61     pid_t FChildPID;
  62     sigset_t saveblock;
  63     int FOutputHandle;
  64     int FInputHandle;
  65     struct sigaction savintr, savequit;
  66     bool FRunning;
  67 
  68     void Cleanup();


  27 #define POSIXPLATFORM_H
  28 
  29 #include "Platform.h"
  30 #include <signal.h>
  31 
  32 class PosixPlatform : virtual public Platform {
  33 protected:
  34 
  35     TString fixName(const TString& name);
  36 
  37     virtual TString getTmpDirString() = 0;
  38 
  39 public:
  40     PosixPlatform(void);
  41     virtual ~PosixPlatform(void);
  42 
  43 public:
  44     virtual MessageResponse ShowResponseMessage(TString title,
  45             TString description);
  46 


  47     virtual Module LoadLibrary(TString FileName);
  48     virtual void FreeLibrary(Module AModule);
  49     virtual Procedure GetProcAddress(Module AModule, std::string MethodName);
  50 
  51     virtual Process* CreateProcess();
  52     virtual TString GetTempDirectory();
  53     void InitStreamLocale(wios *stream);
  54     void addPlatformDependencies(JavaLibrary *pJavaLibrary);
  55 };
  56 
  57 class PosixProcess : public Process {
  58 private:
  59     pid_t FChildPID;
  60     sigset_t saveblock;
  61     int FOutputHandle;
  62     int FInputHandle;
  63     struct sigaction savintr, savequit;
  64     bool FRunning;
  65 
  66     void Cleanup();
< prev index next >