Guitar
MyProcess.h
Go to the documentation of this file.
1 #ifndef MYPROCESS_H
2 #define MYPROCESS_H
3 
4 // Process.h というファイルはWindows環境に既存なので MyProcess.h にした
5 
6 #include <QtGlobal>
7 
8 #ifdef Q_OS_WIN
9 #include "win32/Win32Process.h"
10 #include "win32/Win32PtyProcess.h"
11 using Process = Win32Process;
13 #else
14 #include "unix/UnixProcess.h"
15 #include "unix/UnixPtyProcess.h"
18 #endif
19 
21 public:
22  bool ok = false;
23  int exit_code = 0;
24  std::string error_message;
25  std::string log_message;
26 };
27 Q_DECLARE_METATYPE(ProcessStatus)
28 
29 #endif // MYPROCESS_H
Definition: MyProcess.h:20
bool ok
Definition: MyProcess.h:22
int exit_code
Definition: MyProcess.h:23
std::string error_message
Definition: MyProcess.h:24
std::string log_message
Definition: MyProcess.h:25
Definition: UnixProcess.h:9
Definition: UnixPtyProcess.h:7
Definition: Win32Process.h:10
Definition: Win32PtyProcess.h:9