18 /* internal class used by the retracer to run
20 class RetraceProcess : public QObject
24 RetraceProcess(QObject *parent=0);
27 QProcess *process() const;
29 QString fileName() const;
30 void setFileName(const QString &name);
32 bool isBenchmarking() const;
33 void setBenchmarking(bool bench);
35 bool isDoubleBuffered() const;
36 void setDoubleBuffered(bool db);
38 void setCaptureAtCallNumber(qlonglong num);
39 qlonglong captureAtCallNumber() const;
41 bool captureState() const;
42 void setCaptureState(bool enable);
49 void finished(const QString &output);
50 void error(const QString &msg);
51 void foundState(const ApiTraceState &state);
52 void retraceErrors(const QList<RetraceError> &errors);
55 void replayFinished();
56 void replayError(QProcess::ProcessError err);
61 bool m_doubleBuffered;
63 qlonglong m_captureCall;
66 QJson::Parser *m_jsonParser;
69 class Retracer : public QThread
73 Retracer(QObject *parent=0);
75 QString fileName() const;
76 void setFileName(const QString &name);
78 bool isBenchmarking() const;
79 void setBenchmarking(bool bench);
81 bool isDoubleBuffered() const;
82 void setDoubleBuffered(bool db);
84 void setCaptureAtCallNumber(qlonglong num);
85 qlonglong captureAtCallNumber() const;
87 bool captureState() const;
88 void setCaptureState(bool enable);
91 void finished(const QString &output);
92 void foundState(const ApiTraceState &state);
93 void error(const QString &msg);
94 void retraceErrors(const QList<RetraceError> &errors);
104 bool m_doubleBuffered;
106 qlonglong m_captureCall;
108 QProcessEnvironment m_processEnvironment;