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

Method showAddDeviceDialog

src/Widgets/SettingsDialog.cpp:312–327  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

310}
311
312void SettingsDialog::showAddDeviceDialog()
313{
314 DeviceDialog* dialog = new DeviceDialog(this);
315 if (dialog->exec() == QDialog::Accepted)
316 {
317 DatabaseManager::getInstance().insertDevice(DeviceModel(0, dialog->getName(), dialog->getAddress(),
318 dialog->getPort().toInt(), dialog->getUsername(),
319 dialog->getPassword(), dialog->getDescription(),
320 "", dialog->getShadow(), 0, "", dialog->getPreviewChannel(),
321 dialog->getLockedChannel()));
322
323 loadDevice();
324
325 EventManager::getInstance().fireRefreshLibraryEvent(RefreshLibraryEvent());
326 }
327}
328
329void SettingsDialog::showAddOscOutputDialog()
330{

Callers

nothing calls this directly

Calls 11

insertDeviceMethod · 0.80
getUsernameMethod · 0.80
getPasswordMethod · 0.80
getShadowMethod · 0.80
getNameMethod · 0.45
getAddressMethod · 0.45
getPortMethod · 0.45
getDescriptionMethod · 0.45
getPreviewChannelMethod · 0.45
getLockedChannelMethod · 0.45

Tested by

no test coverage detected