Port a bunch of classes away from Plasma::Package
ClosedPublic

Authored by apol on May 31 2017, 12:21 AM.

Details

Summary

Ported away some classes, removes many unneeded casts that happen when starting.

Test Plan

Tests still pass, plasma starts properly

Diff Detail

Repository
R242 Plasma Framework (Library)
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
apol created this revision.May 31 2017, 12:21 AM
Restricted Application added projects: Plasma, Frameworks. · View Herald TranscriptMay 31 2017, 12:21 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
mart requested changes to this revision.May 31 2017, 9:13 AM
mart added a subscriber: mart.
mart added inline comments.
src/plasma/pluginloader.h
208

wow, phab isn't that smart in the diff it makes checking for binary compatibility quite tricky ;)

src/plasmaquick/appletquickitem.h
105–106

despite the warning in the header, this ended up being an exported symbol, so binary compatibility rules apply here too.
Plasma::Package appletPackage() const; has to stay, eventually deprecated and a new KPackage::Package appletPackage() const; added.

src/scriptengines/qml/plasmoid/wallpaperinterface.h
26

why plasma_export.h?

This revision now requires changes to proceed.May 31 2017, 9:13 AM
apol marked 2 inline comments as done.May 31 2017, 10:56 AM
apol added inline comments.
src/plasmaquick/appletquickitem.h
105–106

Okay, will fix in a next patch. Please note nobody is using these methods and we could possibly scrap altogether the storing of appletPackage and coronaPackage.

apol updated this revision to Diff 15015.May 31 2017, 10:56 AM
apol edited edge metadata.
apol marked an inline comment as done.

Address Marco's comments

mart accepted this revision.May 31 2017, 10:58 AM
This revision is now accepted and ready to land.May 31 2017, 10:58 AM

Can we wait till after the next release is tagged as that's super soon and this isn't that important.
We've had major bugs porting stuff in this area before.

apol added a comment.May 31 2017, 2:00 PM

Yes sure.

This revision was automatically updated to reflect the committed changes.