Plasma/libplasma2/refactorpackageclasses

From KDE Community Wiki
Revision as of 13:20, 22 September 2012 by Afiestas (talk | contribs) (Created page with "==Discussion== PackageMetaData is a relatively thin and inefficient wrapper around KDesktopFile. It's used rarely and doesn't serve a clear purpose. PackageStructure is a rela...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Discussion

PackageMetaData is a relatively thin and inefficient wrapper around KDesktopFile. It's used rarely and doesn't serve a clear purpose. PackageStructure is a relatively static class that combines both a method for getting new packages as well as a description of the underlying package.

Proposed Solution

Look at the use cases for Package and PackageStructure, and consider a refactor to clean up the API and make it easier to use. Likely scenario: merge Package with PackageStructure, drop PackageMetadata from libplasma2.