text: /*
   * Copyright (c) 2011-2015 Shinnok <admin at shinnok.com>
   * Parts Copyright (c) 2012 Aleksey Cherepanov <aleksey.4erepanov@gmail.com>
   * Parts Copyright (c) 2015 Mathieu Laprise <mathieu.laprise@polymtl.ca>
   * See LICENSE dist-file for details.
   */
  
  #ifndef JOHNPROCESS_H
  #define JOHNPROCESS_H
  
  #include <QProcess>
  #include <QtGlobal> // to define Q_OS_
  
  #ifdef Q_OS_UNIX
  #include <signal.h>
  #include <sys/types.h>
  #include <unistd.h>
  #endif
  
  class JohnProcess : public QProcess
  {
      Q_OBJECT
  
  public:
      JohnProcess();
      ~JohnProcess();
  
  public slots:
      void terminate();
  
  protected:
      virtual void setupChildProcess();
  };
  
  #endif // JOHNPROCESS_H
  