<table><tr><td style="">dfaure created this revision.<br />dfaure added reviewers: broulik, mart, vkrause, nicolasfella.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />dfaure requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D25698">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The old traders could lookup both applications and plugins, but plugins<br />
should nowadays be loaded via their JSON file, no desktop-file trader<br />
needed anymore.</p>
<p>To get rid of plugins and servicetypes from the API, and keep<br />
only the application-lookup-related code, the older traders will be<br />
deprecated and their users should either switch to JSON for plugins (KPluginLoader)<br />
or KApplicationTrader for application desktop files.</p>
<p>One API question remains:<br />
KApplicationTrader::self()->query("...") like the old traders, or<br />
KApplicationTrader::query("...") (static methods only, or making it a namespace, a bit procedural rather than OO), or<br />
KApplicationTrader().query("...") like QMimeDatabase/QFontDatabase (but with default ctors for performance) ?</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>New unittest (partly based on kservicetest, but simplified and added new types of checks) passes</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R309 KService</div></div></div><br /><div><strong>BRANCH</strong><div><div>kapplicationtrader</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D25698">https://phabricator.kde.org/D25698</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/CMakeLists.txt<br />
autotests/kapplicationtradertest.cpp<br />
autotests/kservicetest.cpp<br />
autotests/kservicetest.h<br />
src/CMakeLists.txt<br />
src/services/kapplicationtrader.cpp<br />
src/services/kapplicationtrader.h<br />
src/services/kservicetypetrader.h<br />
src/sycoca/ksycocaentry.h</div></div></div><br /><div><strong>To: </strong>dfaure, broulik, mart, vkrause, nicolasfella<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns<br /></div>