4 #include "trace_api.hpp"
5 #include "apitracecall.h"
12 class Retracer : public QThread
16 Retracer(QObject *parent=0);
18 QString fileName() const;
19 void setFileName(const QString &name);
21 void setAPI(trace::API api);
23 bool isBenchmarking() const;
24 void setBenchmarking(bool bench);
26 bool isDoubleBuffered() const;
27 void setDoubleBuffered(bool db);
29 void setCaptureAtCallNumber(qlonglong num);
30 qlonglong captureAtCallNumber() const;
32 bool captureState() const;
33 void setCaptureState(bool enable);
35 bool captureThumbnails() const;
36 void setCaptureThumbnails(bool enable);
39 void finished(const QString &output);
40 void foundState(ApiTraceState *state);
41 void foundThumbnails(const QList<QImage> &thumbnails);
42 void error(const QString &msg);
43 void retraceErrors(const QList<ApiTraceError> &errors);
52 bool m_doubleBuffered;
54 bool m_captureThumbnails;
55 qlonglong m_captureCall;
57 QProcessEnvironment m_processEnvironment;