Blame view

app/gui/oven_control/multimanualcook.h 1.16 KB
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
  #ifndef MULTIMANUALCOOK_H
  #define MULTIMANUALCOOK_H
  
  #include "multicook.h"
  #include "interruptibletime.h"
  
  class MultiManualCook : public MultiCook
  {
      Q_OBJECT
  public:
      explicit MultiManualCook(QObject *parent = 0);
  
      virtual QString name();
      virtual Define::Mode mode();
      virtual int temperature();
      virtual int humidity();
      virtual int remainingTime();
  
      virtual void increaseTime();
      virtual void decreaseTime();
      virtual void setTime();
  
      virtual void start();
      virtual void stop();
      virtual void pause();
      virtual void resume();
  
      virtual MultiCook *clone(QObject *parent);
      virtual bool equals(MultiCook *other);
  
      void setMode(Define::Mode mode);
      void setTemperature(int temperature);
      void setHumidity(int humidity);
      void setTime(int secs);
  
  signals:
  
  public slots:
  
  private:
      Define::Mode mode_;
      int temp;
      int hum;
      int time;
      int modifiedTime;
  
      QTimer checkTimer;
      QTime elapsed;
  
      enum State {
          Idle, Running, Paused, Finished
      } state;
  
      InterruptibleTime decreasedTime;
      InterruptibleTime increasedTime;
  
  private slots:
      void check();
  };
  
  #endif // MULTIMANUALCOOK_H