Blame view

app/gui/oven_control/interruptibletime.h 447 Bytes
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
  #ifndef INTERRUPTIBLETIME_H
  #define INTERRUPTIBLETIME_H
  
  #include <QObject>
  #include <QTime>
  
  class InterruptibleTime : public QObject
  {
      Q_OBJECT
  public:
      explicit InterruptibleTime(QObject *parent = 0);
  
      int elapsed();
      bool isValid();
      bool isNull();
  
  signals:
  
  public slots:
      void start();
      void pause();
      void resume();
      int restart();
  
  private:
      QTime time;
      int elapsed_;
  };
  
  #endif // INTERRUPTIBLETIME_H