| 200 | } |
| 201 | |
| 202 | bool CliRemoteController::getAll() const |
| 203 | { |
| 204 | std::optional<QString> result; |
| 205 | if(!checkConnectionAndLog()) { |
| 206 | result = DspConfig::instance().serialize(); |
| 207 | } |
| 208 | else { |
| 209 | auto reply = service->getAll(); |
| 210 | auto received = handleReply<QString>(reply); |
| 211 | result = received; |
| 212 | } |
| 213 | |
| 214 | if(result.has_value()) { |
| 215 | Log::console(result.value(), true); |
| 216 | } |
| 217 | |
| 218 | return result.has_value(); |
| 219 | } |
| 220 | |
| 221 | bool CliRemoteController::listKeys() const |
| 222 | { |