qmlfrontend/runqueue.h
author alfadur
Tue, 06 Nov 2018 23:45:54 +0300
changeset 14170 8e2e98760003
parent 14164 745c73e0e644
permissions -rw-r--r--
a bit more simplification without an apparent performance gain

#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