Plasma/libplasma2/asyncstructureinstallpackage

From KDE Community Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Discussion

Package::installPackage is current synchronous, which prevents running it in another thread, doing user interaction (e.g. to confirm other dependencies to download) or taking additional actions such as downloads.

Proposed Solution

Make Package::installPackage async and return a KJob* that represents the install process.