multicook.h 731 Bytes
#ifndef MULTICOOK_H
#define MULTICOOK_H

#include <QObject>
#include <QTime>

#include "define.h"

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

    virtual QString name() = 0;
    virtual Define::Mode mode() = 0;
    virtual int temperature() = 0;
    virtual int humidity() = 0;
    virtual int remainingTime() = 0;

    virtual void increaseTime() = 0;
    virtual void decreaseTime() = 0;
    virtual void setTime() = 0;

    virtual void start() = 0;
    virtual void stop() = 0;
    virtual void pause() = 0;
    virtual void resume() = 0;

    virtual MultiCook *clone(QObject *parent = 0) = 0;
    virtual bool equals(MultiCook *other) = 0;
};

#endif // MULTICOOK_H