multicookcontainer.h 734 Bytes
#ifndef MULTICOOKCONTAINER_H
#define MULTICOOKCONTAINER_H

#include <QObject>

#include "multicook.h"

class MultiCookContainer : public QObject
{
    Q_OBJECT
public:
    explicit MultiCookContainer(QObject *parent = 0);

    void add(int slot, MultiCook *cook);
    void remove(int slot);

    MultiCook *at(int slot);
    bool isEmpty();
    bool isFinished();

    Define::Mode mode();
    int temperature();
    int humidity();
    int remainingTime();

    void start();
    void stop();
    void pause();
    void resume();

signals:

public slots:

private:
    QList<MultiCook *> list;
    bool isEmpty_;
    Define::Mode mode_;

    enum State {
        Idle, Running, Paused
    } state;
};

#endif // MULTICOOKCONTAINER_H