| 176 | } |
| 177 | |
| 178 | bool CliRemoteController::get(const QString &key) const |
| 179 | { |
| 180 | std::optional<QString> result; |
| 181 | if(!checkConnectionAndLog()) { |
| 182 | DspConfig::Key resolvedKey; |
| 183 | bool valid = validateKey(key, resolvedKey); |
| 184 | if(!valid) |
| 185 | result = std::nullopt; |
| 186 | |
| 187 | result = DspConfig::instance().get<QString>(resolvedKey, nullptr, false); |
| 188 | } |
| 189 | else { |
| 190 | auto reply = service->get(key); |
| 191 | auto received = handleReply<QString>(reply); |
| 192 | result = received; |
| 193 | } |
| 194 | |
| 195 | if(result.has_value()) { |
| 196 | Log::console(result.value(), true); |
| 197 | } |
| 198 | |
| 199 | return result.has_value(); |
| 200 | } |
| 201 | |
| 202 | bool CliRemoteController::getAll() const |
| 203 | { |
nothing calls this directly
no test coverage detected