MCPcopy Create free account
hub / github.com/CasparCG/client / executeUpdate

Method executeUpdate

src/Widgets/Rundown/RundownCustomCommandWidget.cpp:403–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403void 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
420void RundownCustomCommandWidget::executeInvoke()
421{

Callers

nothing calls this directly

Calls 3

sendCommandMethod · 0.80
getDeviceByNameMethod · 0.45
isConnectedMethod · 0.45

Tested by

no test coverage detected