qmlfrontend/hwengine.h
changeset 14393 b6824a53d4b1
parent 14392 90bd2c331703
child 15919 d52f5d8e75e6
--- a/qmlfrontend/hwengine.h	Fri Dec 07 13:35:08 2018 +0100
+++ b/qmlfrontend/hwengine.h	Fri Dec 07 13:56:45 2018 +0100
@@ -18,6 +18,8 @@
                  previewHedgehogsCountChanged)
   Q_PROPERTY(PreviewAcceptor* previewAcceptor READ previewAcceptor WRITE
                  setPreviewAcceptor NOTIFY previewAcceptorChanged)
+  Q_PROPERTY(QString engineLibrary READ engineLibrary WRITE setEngineLibrary
+                 NOTIFY engineLibraryChanged)
 
  public:
   explicit HWEngine(QObject* parent = nullptr);
@@ -28,9 +30,11 @@
 
   int previewHedgehogsCount() const;
   PreviewAcceptor* previewAcceptor() const;
+  QString engineLibrary() const;
 
  public slots:
   void setPreviewAcceptor(PreviewAcceptor* previewAcceptor);
+  void setEngineLibrary(const QString& engineLibrary);
 
  signals:
   void previewIsRendering();
@@ -39,12 +43,14 @@
   void gameFinished();
   void previewHedgehogsCountChanged(int previewHedgehogsCount);
   void previewAcceptorChanged(PreviewAcceptor* previewAcceptor);
+  void engineLibraryChanged(const QString& engineLibrary);
 
  private:
   QQmlEngine* m_engine;
   GameConfig m_gameConfig;
   int m_previewHedgehogsCount;
   PreviewAcceptor* m_previewAcceptor;
+  QString m_engineLibrary;
 };
 
 #endif  // HWENGINE_H