]> git.cworth.org Git - apitrace/blobdiff - gui/apitrace.h
Auto detect the API from the trace.
[apitrace] / gui / apitrace.h
index f3505258138f62fafc4f733aec72a052197e6f8f..04e295cd7e39470476990d834b5085be7bf77997 100644 (file)
@@ -3,6 +3,8 @@
 
 #include "apitracecall.h"
 
+#include "trace_api.hpp"
+
 #include <QObject>
 #include <QSet>
 
@@ -73,6 +75,8 @@ public:
 
     bool hasErrors() const;
 
+    trace::API api() const;
+
 public slots:
     void setFileName(const QString &name);
     void save();
@@ -124,6 +128,7 @@ signals:
 private slots:
     void addFrames(const QList<ApiTraceFrame*> &frames);
     void slotSaved();
+    void guessedApi(int api);
     void finishedParsing();
     void loaderFrameLoaded(ApiTraceFrame *frame,
                            const QVector<ApiTraceCall*> &calls,
@@ -140,6 +145,7 @@ private:
     QString m_tempFileName;
 
     QList<ApiTraceFrame*> m_frames;
+    trace::API m_api;
 
     TraceLoader *m_loader;
     QThread     *m_loaderThread;