autocook.h
748 Bytes
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 AUTOCOOK_H
#define AUTOCOOK_H
#include "oven.h"
#include "cook.h"
class AutoCook
{
public:
AutoCook();
AutoCook(Cook cook);
void startStep();
void nextStep();
bool advance();
int remainingTime();
bool isWaitingDoorOpened() { return isWaitingDoorOpened_; }
bool done() { return done_; }
bool isCoreTempActivated();
int msecs();
Cook cook;
int currentStepIndex;
int startHumidity;
int startTemp;
private:
bool done_;
bool isWaitingDoorOpened_;
bool doorOpened;
QTime stepStartTime;
bool checkingCoreTemp;
int lastCoreTemp;
int lastIncreasedCoreTemp;
QTime lastCoreTempChangedTime;
QTime lastCoreTempIncreasedTime;
};
#endif // AUTOCOOK_H