| 77 | } |
| 78 | |
| 79 | bool save(const PairedDevice& device) { |
| 80 | const auto addr_hex = addrToHex(device.addr); |
| 81 | std::map<std::string, std::string> map; |
| 82 | map[KEY_NAME] = device.name; |
| 83 | map[KEY_ADDR] = addr_hex; |
| 84 | map[KEY_AUTO_CONNECT] = device.autoConnect ? "true" : "false"; |
| 85 | map[KEY_PROFILE_ID] = std::to_string(device.profileId); |
| 86 | return file::savePropertiesFile(getFilePath(addr_hex), map); |
| 87 | } |
| 88 | |
| 89 | bool remove(const std::string& addr_hex) { |
| 90 | const auto file_path = getFilePath(addr_hex); |
nothing calls this directly
no test coverage detected