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

Method addConfigurationType

kdevplatform/shell/runcontroller.cpp:806–826  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

804}
805
806void RunController::addConfigurationType( LaunchConfigurationType* type )
807{
808 Q_D(RunController);
809
810 const auto typeId = type->id();
811 if (d->launchConfigurationTypes.contains(typeId)) {
812 qCWarning(SHELL) << "cannot add configuration type with an already registered ID" << typeId;
813 return;
814 }
815 d->launchConfigurationTypes.insert(typeId, type);
816
817 if (!d->executeMode) {
818 qCDebug(SHELL) << "added configuration type" << typeId
819 << "before initialization or after cleanup of the RunController, "
820 "so will not read launch configurations now";
821 return;
822 }
823 qCDebug(SHELL).nospace() << "added configuration type " << typeId << ", reading launch configurations of this type";
824 d->readAllLaunchConfigurations(typeId);
825 d->updateCurrentLaunchAction();
826}
827
828void RunController::removeConfigurationType( LaunchConfigurationType* type )
829{

Callers 3

ExecutePluginMethod · 0.80
ExecutePlasmoidPluginMethod · 0.80
ExecuteScriptPluginMethod · 0.80

Calls 5

idMethod · 0.45
containsMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected