qmlfrontend/runqueue.h
author unc0rr
Tue, 26 Dec 2017 01:36:58 +0100
branchqmlfrontend
changeset 12861 488782d9aba9
permissions -rw-r--r--
Recreate uFLRunQueue in Qt, render previews

#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