<table><tr><td style="">sitter created this revision.<br />Herald added a project: Plasma.<br />Herald added a subscriber: plasma-devel.<br />sitter 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/D21765">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>this engine is not used anywhere!</p>

<p>the engine used kfilemetadata to obtain metadata of a file. KFM however<br />
is entirely defunct and does absolutely nothing without nepomuk.<br />
that is to say: it is already broken for years and in fact not even<br />
correctly sets the item.type key because of how the original code worked.</p>

<p>this change drops the kfilemetdata use altogether and instead sets the<br />
item.type (which we can easily determine) to file when working with a file</p>

<p>in theory (I think) Baloo/File is the modern replacement for kfilemetadata,<br />
but its properties are no longer "stringy" so we'd have to map a huge<br />
enum manually into stringy keys for our representation. which at this time<br />
seems not worth it, considering we (KDE) do not seem to use the engine<br />
anymore and third parties would have had an entirely broken engine WRT file<br />
sources as well, so I am guessing no one outside KDE uses it either.<br />
all things considered I think simply rolling the engine back to the<br />
minimum functional use is the best course of action here.</p>

<p>this effectively only changes the engine behavior to once again set<br />
item.type=file on actual files while making it no longer require<br />
kdelibs4support.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>in engine explorer requesting a directory gives unaltered directory data,<br />
when requesting a file it correctly sets the type to file</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>BRANCH</strong><div><div>filebrowser</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D21765">https://phabricator.kde.org/D21765</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>dataengines/filebrowser/CMakeLists.txt<br />
dataengines/filebrowser/filebrowserengine.cpp</div></div></div><br /><div><strong>To: </strong>sitter<br /><strong>Cc: </strong>plasma-devel, LeGast00n, ericadams, jraleigh, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>