稳定备份 更新顶盖逻辑
This commit is contained in:
@@ -8,14 +8,14 @@ class Backend : public IBackend {
|
||||
public:
|
||||
//appCore _core;
|
||||
void test() override { std::cout << "Hello from Backend!" << std::endl; }
|
||||
void init(qtFuncBridge* bridgeIn, nlohmann::ordered_json& json) override {
|
||||
void init(SQLiteDB* db,qtFuncBridge* bridgeIn, nlohmann::ordered_json& json) override {
|
||||
if (initOnce == false) {
|
||||
cv::utils::logging::setLogLevel(cv::utils::logging::LOG_LEVEL_ERROR);
|
||||
_detProcess = new detProcess();
|
||||
_detProcess = new detProcess(db,json, bridgeIn);
|
||||
}
|
||||
_detProcess->init();
|
||||
bridge = bridgeIn;
|
||||
emit bridge->loadingWindow_appendLog(u8"核心加载成功,正在初始化",QColor("white"));
|
||||
_detProcess->initConfig(json, bridgeIn);
|
||||
_detProcess->start();
|
||||
|
||||
}
|
||||
@@ -25,9 +25,6 @@ public:
|
||||
~Backend() {
|
||||
delete _detProcess;
|
||||
}
|
||||
SQLiteDB* getDatabase() {
|
||||
return _detProcess->dataBase;
|
||||
}
|
||||
bool excuteCliCommandPreset(const QString& uuid) {
|
||||
return _detProcess->_cliManager->excutePreset(uuid);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user