Lines Matching refs:devConf
406 static int32_t ConfigItemSwitch(const std::string &configItem, const std::string &value, DeviceConfig &devConf)
418 devConf.autoSwitch = stoi(value);
420 devConf.delayTime = stoi(value);
421 if (devConf.delayTime < MIN_DELAYTIME || devConf.delayTime > MAX_DELAYTIME) {
426 devConf.intervalTime = stoi(value);
427 if (devConf.intervalTime < MIN_INTERVALTIME || devConf.intervalTime > MAX_INTERVALTIME) {
432 devConf.keyboardType = stoi(value);
437 static int32_t ReadConfigFile(const std::string &realPath, DeviceConfig &devConf)
465 if (ConfigItemSwitch(configItem, value, devConf) == RET_ERR) {
475 int32_t ReadTomlFile(const std::string &filePath, DeviceConfig &devConf)
500 if (ReadConfigFile(realPath, devConf) == RET_ERR) {