2f6b55128
김태훈
다중 요리 구현
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
#ifndef MULTICOOKCONTROLLER_H
#define MULTICOOKCONTROLLER_H
#include <QObject>
#include <QTimer>
#include "multicookcontainer.h"
class MultiCookController : public QObject
{
Q_OBJECT
public:
explicit MultiCookController(QObject *parent = 0);
void setContainer(MultiCookContainer *container);
bool requireOpen();
bool requireClose();
signals:
public slots:
private:
MultiCookContainer *container;
QTimer checkTimer;
enum State {
Idle, Preheating, OpenDoor, CloseDoor, Running, Paused, Finished
} state;
private slots:
void check();
void checkPreheating();
void checkRunning();
void checkPaused();
void checkFinished();
};
#endif // MULTICOOKCONTROLLER_H
|