qmlfrontend/hwengine.h
branchqmlfrontend
changeset 12863 0c6fb706f747
parent 12862 90f927b4b9e1
child 12866 488782d9aba9
--- a/qmlfrontend/hwengine.h	Fri Dec 22 23:59:03 2017 +0100
+++ b/qmlfrontend/hwengine.h	Sun Dec 24 00:44:16 2017 +0100
@@ -1,9 +1,11 @@
 #ifndef HWENGINE_H
 #define HWENGINE_H
 
+#include <QList>
 #include <QObject>
 
 #include "flib.h"
+#include "gameconfig.h"
 
 class QQmlEngine;
 
@@ -18,6 +20,9 @@
 
     static void exposeToQML();
 
+    Q_INVOKABLE void getPreview();
+    Q_INVOKABLE void runQuickGame();
+
 signals:
     void previewIsRendering();
     void previewImageChanged();
@@ -27,6 +32,7 @@
 
 private:
     QQmlEngine* m_engine;
+    QList<GameConfig> m_runQueue;
 
     static void guiMessagesCallback(void* context, MessageType mt, const char* msg, uint32_t len);