Choreonoid  1.8
Process.h
Go to the documentation of this file.
1 
5 #ifndef CNOID_BASE_PROCESS_H
6 #define CNOID_BASE_PROCESS_H
7 
8 #include <cnoid/Signal>
9 #include <QProcess>
10 #include "exportdecl.h"
11 
12 namespace cnoid {
13 
24 class CNOID_EXPORT Process : public QProcess
25 {
26  Q_OBJECT
27 
28 public:
29  Process(QObject* parent = 0);
30 
32  return sigReadyReadStandardOutput_;
33  }
34 
35  void start(const QString& program, const QStringList& arguments, OpenMode mode = ReadWrite);
36  void start(const QString& program, OpenMode mode = ReadWrite);
37 
38 private Q_SLOTS:
39  void onReadyReadStandardOutput();
40 
41 private:
42  Signal<void()> sigReadyReadStandardOutput_;
43 };
44 
45 }
46 
47 #endif
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Process
Definition: Process.h:24
cnoid::Process::sigReadyReadStandardOutput
SignalProxy< void()> sigReadyReadStandardOutput()
Definition: Process.h:31
cnoid::Signal
Definition: Signal.h:165
cnoid::SignalProxy
Definition: Signal.h:470