<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="12" style="border: 1px #c9c399 solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="https://git.reviewboard.kde.org/r/123626/">https://git.reviewboard.kde.org/r/123626/</a>
</td>
</tr>
</table>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<p style="margin-top: 0;">On May 6th, 2015, 10:54 p.m. UTC, <b>Sebastian Kügler</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<table width="100%" border="0" bgcolor="white" style="border: 1px solid #C0C0C0; border-collapse: collapse; margin: 2px padding: 2px;">
<thead>
<tr>
<th colspan="4" bgcolor="#F0F0F0" style="border-bottom: 1px solid #C0C0C0; font-size: 9pt; padding: 4px 8px; text-align: left;">
<a href="https://git.reviewboard.kde.org/r/123626/diff/4/?file=366900#file366900line826" style="color: black; font-weight: bold; text-decoration: underline;">src/plasma/pluginloader.cpp</a>
<span style="font-weight: normal;">
(Diff revision 4)
</span>
</th>
</tr>
</thead>
<tbody style="background-color: #e4d9cb; padding: 4px 8px; text-align: center;">
<tr>
<td colspan="4"><pre style="font-size: 8pt; line-height: 140%; margin: 0; ">QStringList PluginLoader::customAppletCategories() const</pre></td>
</tr>
</tbody>
<tbody>
<tr>
<th bgcolor="#e9eaa8" style="border-right: 1px solid #C0C0C0;" align="right"><font size="2">674</font></th>
<td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "> <span class="k">const</span> <span class="n">QString</span> <span class="n">constraint</span> <span class="o">=</span> <span class="n">QString</span><span class="p">(</span><span class="s">"'%1' in [X-Plasma-DropMimeTypes]"</span><span class="p">).</span><span class="n">arg</span><span class="p">(</span><span class="n">mimeType</span><span class="p">);</span></pre></td>
<th bgcolor="#e9eaa8" style="border-left: 1px solid #C0C0C0; border-right: 1px solid #C0C0C0;" align="right"><font size="2">730</font></th>
<td bgcolor="#fdfebc" width="50%"><pre style="font-size: 8pt; line-height: 140%; margin: 0; "> <span class="c1">//HACK: we actually need an instance for this to work correctly</span></pre></td>
</tr>
</tbody>
</table>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Why? This remark makes it kinda magical and doesn't provide any other information than "rather don't touch this" which is counter-productive to actually fixing it.</p></pre>
</blockquote>
</blockquote>
<pre style="margin-left: 1em; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">yeah, basically it's due to the KPackage::PackageLoader::self()->addKnownPackageStructure("Plasma/Applet", new PlasmoidPackage());
in the constructor. otherwise it doesn't know what a plasmoid package is. As i said in the addKnownPackageStructure, the solutions for this are either making sure addKnownPackageStructure has been called or making those structures plugins as well.</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">another solution that would be a bit more clear would be perhaps an accessor for known package structures in kpackageloader, so those self() would become:</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">if (!KPackage::PackageLoader::self()->packageStructureFor("Plasma/Applet")) {
KPackage::PackageLoader::self()->addKnownPackageStructure("Plasma/Applet", new PlasmoidPackage());
}</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">other/better api suggestions are welcome</p></pre>
<br />
<p>- Marco</p>
<br />
<p>On May 6th, 2015, 5:21 p.m. UTC, Marco Martin wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="12" style="border: 1px #888a85 solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tr>
<td>
<div>Review request for KDE Frameworks and Plasma.</div>
<div>By Marco Martin.</div>
<p style="color: grey;"><i>Updated May 6, 2015, 5:21 p.m.</i></p>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt;">Repository: </b>
plasma-framework
</div>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">this ports most of libplasma away from sycoca, using instead a combination of KPluginLoader and KPackage::PackageLoader instead (so eventually using their own little caches instead of the global sycoca cache)
a kservicetypetrader call is left in the loading of containmentactions since is the only way to make an older workspace still work, but is only a fallback, so containmentactions in plasma-workspace can be ported eventually as well</p></pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">still needs a lot of testing, so far, with a master plasma-workspace notmal workspace functions seems fine</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">latest version still installs metadata files in kservices5. I would keep this for safety until Plasma 5.4 is released, then try to remove it again</p></pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>KF5PlasmaConfig.cmake.in <span style="color: grey">(dee79ca)</span></li>
<li>src/declarativeimports/plasmacomponents/qml/private/TabBarLayout.qml <span style="color: grey">(be76a43)</span></li>
<li>src/plasma/applet.cpp <span style="color: grey">(2dda381)</span></li>
<li>src/plasma/containment.cpp <span style="color: grey">(7eabbb8)</span></li>
<li>src/plasma/containmentactions.cpp <span style="color: grey">(f24bdac)</span></li>
<li>src/plasma/dataengine.cpp <span style="color: grey">(4b3d671)</span></li>
<li>src/plasma/package.cpp <span style="color: grey">(4e0be88)</span></li>
<li>src/plasma/packagestructure.cpp <span style="color: grey">(b2686b6)</span></li>
<li>src/plasma/pluginloader.cpp <span style="color: grey">(0ce349a)</span></li>
<li>src/plasma/private/applet_p.cpp <span style="color: grey">(2cbfd06)</span></li>
<li>src/plasma/private/dataenginemanager.cpp <span style="color: grey">(b9c5d8e)</span></li>
<li>src/plasma/scripting/appletscript.h <span style="color: grey">(863d707)</span></li>
<li>src/plasma/scripting/dataenginescript.h <span style="color: grey">(f7ad3c2)</span></li>
<li>src/plasma/scripting/scriptengine.cpp <span style="color: grey">(cc407e7)</span></li>
<li>src/plasma/service.h <span style="color: grey">(b5d9b5a)</span></li>
<li>src/plasma/service.cpp <span style="color: grey">(3e9d852)</span></li>
<li>src/plasmapkg/plasmapkg.cpp <span style="color: grey">(d606365)</span></li>
<li>src/scriptengines/CMakeLists.txt <span style="color: grey">(f566406)</span></li>
<li>src/scriptengines/qml/CMakeLists.txt <span style="color: grey">(e7130db)</span></li>
<li>src/scriptengines/qml/plasmoid/appletinterface.cpp <span style="color: grey">(07ecb3d)</span></li>
<li>src/scriptengines/qml/plasmoid/containmentinterface.cpp <span style="color: grey">(c6986f2)</span></li>
<li>src/scriptengines/qml/plasmoid/declarativeappletscript.cpp <span style="color: grey">(24c39dd)</span></li>
<li>src/scriptengines/qml/plasmoid/wallpaperinterface.cpp <span style="color: grey">(a406d45)</span></li>
</ul>
<p><a href="https://git.reviewboard.kde.org/r/123626/diff/" style="margin-left: 3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>