|
@ -1,12 +1,13 @@ |
|
|
#include "main_control_service.hpp"
|
|
|
#include "main_control_service.hpp"
|
|
|
|
|
|
|
|
|
|
|
|
#include "appbase/project_setting_mgr.hpp"
|
|
|
#include "baseservice/baseservice.hpp"
|
|
|
#include "baseservice/baseservice.hpp"
|
|
|
#include "service/setting_mgr_service.hpp"
|
|
|
|
|
|
#include "service/user_mgr_service.hpp"
|
|
|
|
|
|
#include "service/device_info_mgr_service.hpp"
|
|
|
#include "service/device_info_mgr_service.hpp"
|
|
|
|
|
|
#include "service/disinfection_logs_service.hpp"
|
|
|
#include "service/os_mgr_service.hpp"
|
|
|
#include "service/os_mgr_service.hpp"
|
|
|
|
|
|
#include "service/setting_mgr_service.hpp"
|
|
|
#include "service/test_page_mgr_service.hpp"
|
|
|
#include "service/test_page_mgr_service.hpp"
|
|
|
#include "service/disinfection_logs_service.hpp"
|
|
|
|
|
|
|
|
|
#include "service/user_mgr_service.hpp"
|
|
|
#include "udisk_mgr_service.hpp"
|
|
|
#include "udisk_mgr_service.hpp"
|
|
|
|
|
|
|
|
|
using namespace iflytop; |
|
|
using namespace iflytop; |
|
@ -20,12 +21,16 @@ void MainControlService::dosystem(string order, bool dump) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void MainControlService::initialize() { |
|
|
void MainControlService::initialize() { |
|
|
|
|
|
BUILD_AND_REG_SERRVICE(ProjectSettingMgr); |
|
|
|
|
|
|
|
|
// Base
|
|
|
// Base
|
|
|
BUILD_AND_REG_SERRVICE(DBService); |
|
|
|
|
|
BUILD_AND_REG_SERRVICE(UDiskMgrService); |
|
|
|
|
|
BUILD_AND_REG_SERRVICE(DeviceStateService); |
|
|
|
|
|
BUILD_AND_REG_SERRVICE(IflytopFrontEndService); |
|
|
BUILD_AND_REG_SERRVICE(IflytopFrontEndService); |
|
|
BUILD_AND_REG_SERRVICE(FrontMsgProcesser); |
|
|
BUILD_AND_REG_SERRVICE(FrontMsgProcesser); |
|
|
|
|
|
BUILD_AND_REG_SERRVICE(DBService); |
|
|
|
|
|
BUILD_AND_REG_SERRVICE(DeviceStateService); |
|
|
|
|
|
//
|
|
|
|
|
|
BUILD_AND_REG_SERRVICE(UDiskMgrService); |
|
|
|
|
|
//
|
|
|
BUILD_AND_REG_SERRVICE(DisinfectionLogsService); |
|
|
BUILD_AND_REG_SERRVICE(DisinfectionLogsService); |
|
|
// Device
|
|
|
// Device
|
|
|
BUILD_AND_REG_SERRVICE(UartPrinter); |
|
|
BUILD_AND_REG_SERRVICE(UartPrinter); |
|
@ -36,7 +41,7 @@ void MainControlService::initialize() { |
|
|
BUILD_AND_REG_SERRVICE(DeviceInfoMgrService); |
|
|
BUILD_AND_REG_SERRVICE(DeviceInfoMgrService); |
|
|
BUILD_AND_REG_SERRVICE(OsMgrService); |
|
|
BUILD_AND_REG_SERRVICE(OsMgrService); |
|
|
BUILD_AND_REG_SERRVICE(TestPageMgrService); |
|
|
BUILD_AND_REG_SERRVICE(TestPageMgrService); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
//
|
|
|
GET_SERVICE(IflytopFrontEndService)->startListen(); |
|
|
GET_SERVICE(IflytopFrontEndService)->startListen(); |
|
|
GET_SERVICE(IflytopFrontEndService)->onMessage.connect([this](weak_ptr<WebSocket> webSocket, json& cmd, json& receipt) { |
|
|
GET_SERVICE(IflytopFrontEndService)->onMessage.connect([this](weak_ptr<WebSocket> webSocket, json& cmd, json& receipt) { |
|
|