dfaure added a comment.

  Assuming we install all parts under plugins/parts instead of just plugins/ 
like we currently do, the application should be able to do
  
  `KPluginTrader::createInstanceFromQuery<KParts::ReadOnlyPart>("parts", 
"KParts/ReadOnlyPart", "'application/pdf' in MimeTypes", parent, parentWidget)`
  
  This makes me realize however that mimetype inheritance would probably not be 
supported when doing it this way.
  We probably want to add a queryByMimeType to KPluginTrader as well, and a 
createInstanceFromQuery that takes a mimetype name, like KMimeTypeTrader has 
(maybe with another name though, too many overloads otherwise).
  
  Would this work for you?

REPOSITORY
  R309 KService

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

To: dfaure, broulik, mart, vkrause, nicolasfella
Cc: aacid, dhaumann, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, 
bruns

Reply via email to