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

Method exportCurrent

plugins/flatpak/flatpakplugin.cpp:108–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

106}
107
108void FlatpakPlugin::exportCurrent()
109{
110 const auto runtime = qobject_cast<FlatpakRuntime*>(ICore::self()->runtimeController()->currentRuntime());
111 Q_ASSERT(runtime);
112
113 const QString path = QFileDialog::getSaveFileName(ICore::self()->uiController()->activeMainWindow(), i18nc("@title:window", "Export %1", runtime->name()), {}, i18n("Flatpak Bundle (*.flatpak)"));
114 if (!path.isEmpty()) {
115 const auto exportBundle = runtime->exportBundle(path);
116 auto* const job = new ExecuteCompositeJob(runtime, exportBundle.jobs);
117 job->setObjectName(i18nc("%1 - application ID", "Flatpak Export Bundle %1", exportBundle.applicationId));
118 ICore::self()->runController()->registerJob(job);
119 }
120}
121
122static Path flatpakBuildDirPath(const IProject* project, const QString& arch)
123{

Callers

nothing calls this directly

Calls 9

currentRuntimeMethod · 0.80
runtimeControllerMethod · 0.80
uiControllerMethod · 0.80
exportBundleMethod · 0.80
registerJobMethod · 0.80
runControllerMethod · 0.80
activeMainWindowMethod · 0.45
nameMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected