qmlfrontend/runqueue.h
changeset 14148 745c73e0e644
equal deleted inserted replaced
14147:11202097584f 14148:745c73e0e644
       
     1 #ifndef RUNQUEUE_H
       
     2 #define RUNQUEUE_H
       
     3 
       
     4 #include <QObject>
       
     5 
       
     6 #include "gameconfig.h"
       
     7 
       
     8 class RunQueue : public QObject {
       
     9     Q_OBJECT
       
    10 public:
       
    11     explicit RunQueue(QObject* parent = nullptr);
       
    12 
       
    13     void queue(const GameConfig& config);
       
    14 
       
    15 signals:
       
    16     void previewIsRendering();
       
    17 
       
    18 public slots:
       
    19     void onGameFinished();
       
    20 
       
    21 private:
       
    22     QList<GameConfig> m_runQueue;
       
    23 
       
    24     void nextRun();
       
    25 };
       
    26 
       
    27 #endif // RUNQUEUE_H