12 /* internal class used by the retracer to run
14 class RetraceProcess : public QObject
18 RetraceProcess(QObject *parent=0);
21 QProcess *process() const;
23 QString fileName() const;
24 void setFileName(const QString &name);
26 bool isBenchmarking() const;
27 void setBenchmarking(bool bench);
29 bool isDoubleBuffered() const;
30 void setDoubleBuffered(bool db);
32 void setCaptureAtCallNumber(qlonglong num);
33 qlonglong captureAtCallNumber() const;
35 bool captureState() const;
36 void setCaptureState(bool enable);
43 void finished(const QString &output);
44 void error(const QString &msg);
45 void foundState(const ApiTraceState &state);
48 void replayFinished();
49 void replayError(QProcess::ProcessError err);
54 bool m_doubleBuffered;
56 qlonglong m_captureCall;
59 QJson::Parser *m_jsonParser;
62 class Retracer : public QThread
66 Retracer(QObject *parent=0);
68 QString fileName() const;
69 void setFileName(const QString &name);
71 bool isBenchmarking() const;
72 void setBenchmarking(bool bench);
74 bool isDoubleBuffered() const;
75 void setDoubleBuffered(bool db);
77 void setCaptureAtCallNumber(qlonglong num);
78 qlonglong captureAtCallNumber() const;
80 bool captureState() const;
81 void setCaptureState(bool enable);
84 void finished(const QString &output);
85 void foundState(const ApiTraceState &state);
86 void error(const QString &msg);
96 bool m_doubleBuffered;
98 qlonglong m_captureCall;
100 QProcessEnvironment m_processEnvironment;