qmlfrontend/runqueue.h
changeset 14154 8354b390f1a2
parent 14153 b273b43b16d2
child 14155 8f82d87d223f
equal deleted inserted replaced
14153:b273b43b16d2 14154:8354b390f1a2
     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