MCPcopy Create free account
hub / github.com/KDE/kdevelop / start

Method start

plugins/execute/nativeappconfig.cpp:209–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209KJob* NativeAppLauncher::start(const QString& launchMode, KDevelop::ILaunchConfiguration* cfg)
210{
211 Q_ASSERT(cfg);
212 if( !cfg )
213 {
214 return nullptr;
215 }
216 if( launchMode == QLatin1String("execute") )
217 {
218 auto nativeAppJob = new NativeAppJob( KDevelop::ICore::self()->runController(), cfg );
219 QObject::connect(nativeAppJob, &NativeAppJob::killBeforeExecutingAgainChanged, KDevelop::ICore::self()->runController(), [cfg] (int newValue) {
220 auto cfgGroup = cfg->config();
221 cfgGroup.writeEntry(ExecutePlugin::killBeforeExecutingAgain, newValue);
222 });
223
224 return makeJobWithDependency(nativeAppJob, executePlugin(), cfg);
225 }
226 qCWarning(PLUGIN_EXECUTE) << "Unknown launch mode " << launchMode << "for config:" << cfg->name();
227 return nullptr;
228}
229
230QStringList NativeAppLauncher::supportedModes() const
231{

Callers

nothing calls this directly

Calls 5

makeJobWithDependencyFunction · 0.85
runControllerMethod · 0.80
writeEntryMethod · 0.80
configMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected