]> git.cworth.org Git - apitrace/blob - gui/saverthread.h
Merge branch 'directxtex'
[apitrace] / gui / saverthread.h
1 #ifndef SAVERTHREAD_H
2 #define SAVERTHREAD_H
3
4
5 #include "apitrace.h"
6 #include <QThread>
7 #include <QVector>
8
9 class ApiTraceCall;
10 class ApiTraceFrame;
11
12 class SaverThread : public QThread
13 {
14     Q_OBJECT
15 public:
16     SaverThread(QObject *parent=0);
17
18 public slots:
19     void saveFile(const QString &saveFileName,
20                   const QString &readFileName,
21                   const QSet<ApiTraceCall*> &editedCalls);
22
23 signals:
24     void traceSaved();
25
26 protected:
27     virtual void run();
28
29 private:
30     QString m_readFileName;
31     QString m_writeFileName;
32     QSet<ApiTraceCall*> m_editedCalls;
33 };
34
35
36 #endif