Blame view

app/gui/oven_control/multicookbook.h 680 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
31
32
33
34
35
36
37
38
  #ifndef MULTICOOKBOOK_H
  #define MULTICOOKBOOK_H
  
  #include <QObject>
  
  #include "define.h"
  #include "multiautocook.h"
  #include "cookbook.h"
  
  class MultiCookBook : public QObject
  {
      Q_OBJECT
  public:
      explicit MultiCookBook(QObject *parent = 0);
  
      void setMode(Define::Mode mode);
      void setType(Define::CookType type);
  
      bool checkType(Define::CookType type);
      QList<QString> names();
      MultiAutoCook *cook(int index);
  
  signals:
  
  public slots:
  
  private:
      Define::Mode mode;
      Define::CookType type;
      CookBook book;
      QList<Define::CookType> availables;
      QList<QString> roots;
  
      void loadTypes();
      void loadCooks();
  };
  
  #endif // MULTICOOKBOOK_H