author | unc0rr |
Sun, 07 Jan 2018 09:48:26 +0100 | |
branch | qmlfrontend |
changeset 12884 | 66171ce586cc |
parent 12861 | 488782d9aba9 |
permissions | -rw-r--r-- |
12861 | 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 |