#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