branch | qmlfrontend |
changeset 12861 | 488782d9aba9 |
12860:e33bcb9d5e9c | 12861:488782d9aba9 |
---|---|
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 |