Blame view

app/gui/oven_control/autocook.h 698 Bytes
6a81d38e4   김태훈   자동 요리 관련 로직 전면 재작성
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
  #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_; }
  
      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