MCPcopy Create free account
hub / github.com/baldurk/renderdoc / addNewHost

Method addNewHost

qrenderdoc/Windows/Dialogs/RemoteManager.cpp:369–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367}
368
369void RemoteManager::addNewHost()
370{
371 QString host = ui->hostname->text().trimmed();
372 if(!host.isEmpty())
373 {
374 bool found = false;
375
376 RemoteHost h = m_Ctx.Config().GetRemoteHost(host);
377
378 if(!h.IsValid())
379 {
380 h = RemoteHost((rdcstr)host);
381 h.SetRunCommand(ui->runCommand->text().trimmed());
382
383 m_Ctx.Config().AddRemoteHost(h);
384 m_Ctx.Config().Save();
385
386 addHost(h);
387 }
388 }
389 ui->hostname->setText(host);
390 on_hostname_textEdited(host);
391}
392
393void RemoteManager::setRunCommand()
394{

Callers

nothing calls this directly

Calls 11

trimmedMethod · 0.80
RemoteHostClass · 0.70
textMethod · 0.45
isEmptyMethod · 0.45
GetRemoteHostMethod · 0.45
ConfigMethod · 0.45
IsValidMethod · 0.45
SetRunCommandMethod · 0.45
AddRemoteHostMethod · 0.45
SaveMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected