25 #ifndef KLFFILTERPROCESS_H
26 #define KLFFILTERPROCESS_H
35 #define KLFFP_NOSTART 1
36 #define KLFFP_NOEXIT 2
37 #define KLFFP_NOSUCCESSEXIT 3
38 #define KLFFP_NODATA 4
39 #define KLFFP_DATAREADFAIL 5
40 #define KLFFP_PAST_LAST_VALUE 6
44 struct KLFFilterProcessPrivate;
45 class KLFFilterProcessBlockProcess;
56 void setProgTitle(
const QString& title);
59 void setProgramCwd(
const QString& cwd);
68 void addArgv(
const QString& argv);
70 bool outputStdout()
const;
72 void setOutputStdout(
bool on);
74 bool outputStderr()
const;
77 void setOutputStderr(
bool on);
80 void collectStdoutTo(
QByteArray * stdoutstore);
82 void collectStderrTo(
QByteArray * stderrstore);
85 bool processAppEvents();
89 void setProcessAppEvents(
bool processEvents);
93 virtual int exitStatus()
const;
95 virtual int exitCode()
const;
98 virtual int resultStatus()
const;
100 virtual QString resultErrorString()
const;
105 return run(
QByteArray(), outFileName, outdata);
111 return do_run(indata, fout);
139 return do_run(indata, outdatalist);
145 friend class KLFFilterProcessBlockProcess;