MCPcopy Create free account
hub / github.com/KDAB/GammaRay / launchOptions

Method launchOptions

launcher/ui/attachdialog.cpp:108–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108LaunchOptions AttachDialog::launchOptions() const
109{
110 LaunchOptions opt;
111 opt.setPid(pid());
112 opt.setProbeABI(ui->probeBox->itemData(ui->probeBox->currentIndex()).value<ProbeABI>());
113
114 switch (ui->accessMode->currentIndex()) {
115 case 0: // local, out-of-process
116 opt.setProbeSetting(QStringLiteral("RemoteAccessEnabled"), true);
117 opt.setProbeSetting(QStringLiteral("ServerAddress"), GAMMARAY_DEFAULT_LOCAL_TCP_URL);
118 opt.setUiMode(LaunchOptions::OutOfProcessUi);
119 break;
120 case 1: // remote, out-of-process
121 opt.setProbeSetting(QStringLiteral("RemoteAccessEnabled"), true);
122 opt.setProbeSetting(QStringLiteral("ServerAddress"), GAMMARAY_DEFAULT_ANY_TCP_URL);
123 opt.setUiMode(LaunchOptions::OutOfProcessUi);
124 break;
125 case 2: // in-process
126 opt.setProbeSetting(QStringLiteral("RemoteAccessEnabled"), false);
127 opt.setUiMode(LaunchOptions::InProcessUi);
128 break;
129 }
130
131 return opt;
132}
133
134int AttachDialog::pid() const
135{

Callers

nothing calls this directly

Calls 5

setProbeABIMethod · 0.80
setProbeSettingMethod · 0.80
setUiModeMethod · 0.80
setPidMethod · 0.45
itemDataMethod · 0.45

Tested by

no test coverage detected