4 #include "apitracecall.h"
14 /* internal class used by the retracer to run
16 class RetraceProcess : public QObject
20 RetraceProcess(QObject *parent=0);
23 QProcess *process() const;
25 QString fileName() const;
26 void setFileName(const QString &name);
28 bool isBenchmarking() const;
29 void setBenchmarking(bool bench);
31 bool isDoubleBuffered() const;
32 void setDoubleBuffered(bool db);
34 void setCaptureAtCallNumber(qlonglong num);
35 qlonglong captureAtCallNumber() const;
37 bool captureState() const;
38 void setCaptureState(bool enable);
45 void finished(const QString &output);
46 void error(const QString &msg);
47 void foundState(ApiTraceState *state);
48 void retraceErrors(const QList<ApiTraceError> &errors);
51 void replayFinished();
52 void replayError(QProcess::ProcessError err);
57 bool m_doubleBuffered;
59 qlonglong m_captureCall;
62 QJson::Parser *m_jsonParser;
65 class Retracer : public QThread
69 Retracer(QObject *parent=0);
71 QString fileName() const;
72 void setFileName(const QString &name);
74 bool isBenchmarking() const;
75 void setBenchmarking(bool bench);
77 bool isDoubleBuffered() const;
78 void setDoubleBuffered(bool db);
80 void setCaptureAtCallNumber(qlonglong num);
81 qlonglong captureAtCallNumber() const;
83 bool captureState() const;
84 void setCaptureState(bool enable);
87 void finished(const QString &output);
88 void foundState(ApiTraceState *state);
89 void error(const QString &msg);
90 void retraceErrors(const QList<ApiTraceError> &errors);
100 bool m_doubleBuffered;
102 qlonglong m_captureCall;
104 QProcessEnvironment m_processEnvironment;