MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / get

Method get

src/utils/CliRemoteController.cpp:178–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

176}
177
178bool 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
202bool CliRemoteController::getAll() const
203{

Callers

nothing calls this directly

Calls 2

validateKeyFunction · 0.85
valueMethod · 0.45

Tested by

no test coverage detected