qmlfrontend/runqueue.h
author unc0rr
Tue, 11 Sep 2018 21:16:27 +0200
branchqmlfrontend
changeset 13777 5c0ea888c926
parent 12866 488782d9aba9
permissions -rw-r--r--
Make rendering work

#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