#ifndef SERVICELOADDB_H #define SERVICELOADDB_H #include "service/types.h" #include #include #include #include #include #include #include #include #include #include #include #include #include class ServiceLoadDB : public QObject { Q_OBJECT public: explicit ServiceLoadDB(QObject *parent = nullptr); void start(); void updateLikesState(QMap &); private: QList readStructureElements(int modelId); signals: void sendStages(QMap &); void sendWorkers(QMap &); void sendTeams(QMap &); void sendDeviceTypes(QMap &); void sendDeviceModels(QMap &); void sendProjects(QMap &); public slots: void loadStages(); void loadWorkers(); void loadTeams(); void loadDeviceTypes(); void loadDeviceModels(); void loadProjects(); private: QSqlDatabase db; QString db_input; QSqlQuery query; QMap mapStages; QMap mapWorkers; QMap mapTeams; QMap mapDeviceTypes; QMap mapDeviceModels; QMap mapProjects; signals: }; #endif // SERVICELOADDB_H