D25517: Add an option to extract image data and add front cover property

Stefan BrĂ¼ns noreply at phabricator.kde.org
Sun Jan 5 00:25:54 GMT 2020


bruns added a comment.


  I have thought about this and have come to the conclusion this is not really future proof.
  
  The `Property::FrontCover` is IMHO fine, i.e. the changes to `propertyinfo.cpp` and `properties.h` could go in as is.
  
  The request of additional properties should be done differently. How about the following:
  
  1. divide properties into (currently) two sets, "Simple Metadata" (all the current ones but frontcover) and "Complex Metadata" (currently frontcover).
  2. allow to specify extra properties for SimpleExtractionResult
  
    SimpleExtractionResult result(fileName, mimeType);
    result.setExtraProperties({Property::FrontCover});
    plugin.extract(&result);
  
  You can then also do:
  
    SimpleExtractionResult result(fileName, mimeType, ExtractionResult::ExtractNothing);
    result.setExtraProperties({Property::FrontCover, Property::BandLogo});
    plugin.extract(&result);

REPOSITORY
  R286 KFileMetaData

REVISION DETAIL
  https://phabricator.kde.org/D25517

To: astippich, #baloo, bruns, mgallien, ngraham
Cc: kde-frameworks-devel, hurikhan77, lots0logs, LeGast00n, fbampaloukas, GB_2, domson, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200105/d5c5417b/attachment.html>


More information about the Kde-frameworks-devel mailing list