qmlfrontend/runqueue.h
author unc0rr
Wed, 27 Dec 2017 00:59:26 +0100
branchqmlfrontend
changeset 12868 fe16fa088b69
parent 12866 488782d9aba9
permissions -rw-r--r--
Make playing a game possible

#ifndef RUNQUEUE_H
#define RUNQUEUE_H

#include <QObject>

#include "gameconfig.h"

class RunQueue : public QObject {
    Q_OBJECT
public:
    explicit RunQueue(QObject* parent = nullptr);

    void queue(const GameConfig& config);

signals:
    void previewIsRendering();

public slots:
    void onGameFinished();

private:
    QList<GameConfig> m_runQueue;

    void nextRun();
};

#endif // RUNQUEUE_H