| 347 | } |
| 348 | |
| 349 | bool CliRemoteController::listOutputDevices() const |
| 350 | { |
| 351 | if(!requireConnectionAndLog()) |
| 352 | return false; |
| 353 | |
| 354 | QList<IOutputDevice> devices; |
| 355 | auto reply = service->getOutputDevices(); |
| 356 | devices = handleReply(reply).value_or(devices); |
| 357 | |
| 358 | for(const IOutputDevice& device : devices) { |
| 359 | Log::console(QString("Name: %1").arg(QString::fromStdString(device.description)), true); |
| 360 | Log::console(QString("ID: %1").arg(QString::fromStdString(device.name)), true); |
| 361 | Log::console(QString("Current output route ID: %2 (%1)").arg(QString::fromStdString(device.output_route_description)).arg(QString::fromStdString(device.output_route_name)), true); |
| 362 | Log::console(QString("Available output route IDs:"), true); |
| 363 | for(const Route& route : device.output_routes) { |
| 364 | Log::console(QString("\t%2 (%1)").arg(QString::fromStdString(route.description)).arg(QString::fromStdString(route.name)), true); |
| 365 | } |
| 366 | Log::console("", true); |
| 367 | } |
| 368 | |
| 369 | return true; |
| 370 | } |
| 371 | |
| 372 | bool CliRemoteController::showStatus() const |
| 373 | { |
nothing calls this directly
no test coverage detected