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
42
43
44
45
|
#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
|