| 401 | } |
| 402 | |
| 403 | void RundownCustomCommandWidget::executeUpdate() |
| 404 | { |
| 405 | const QSharedPointer<CasparDevice> device = DeviceManager::getInstance().getDeviceByName(this->model.getDeviceName()); |
| 406 | if (device != NULL && device->isConnected() && !this->command.getUpdateCommand().isEmpty()) |
| 407 | device->sendCommand(this->command.getUpdateCommand()); |
| 408 | |
| 409 | foreach (const DeviceModel& model, DeviceManager::getInstance().getDeviceModels()) |
| 410 | { |
| 411 | if (model.getShadow() == "No") |
| 412 | continue; |
| 413 | |
| 414 | const QSharedPointer<CasparDevice> deviceShadow = DeviceManager::getInstance().getDeviceByName(model.getName()); |
| 415 | if (deviceShadow != NULL && deviceShadow->isConnected() && !this->command.getUpdateCommand().isEmpty()) |
| 416 | deviceShadow->sendCommand(this->command.getUpdateCommand()); |
| 417 | } |
| 418 | } |
| 419 | |
| 420 | void RundownCustomCommandWidget::executeInvoke() |
| 421 | { |
nothing calls this directly
no test coverage detected