<table><tr><td style="">poboiko created this revision.<br />poboiko added reviewers: KDE PIM, dvratil, apol.<br />poboiko added a project: KDE PIM.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />poboiko 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/D15431">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>This patch makes PersonPluginManager available to third-party applications, allowing them to use KPeople in a stand-alone way, without interacting with system-wide plugins.</p>
<p>It is part of <a href="https://phabricator.kde.org/T9595" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">T9595: [KAddressbook] Use KPeople model for contact list</a>. Currently we only want to use only Akonadi plugin (to be developed), and then possibly add support for other (i.e. KTelepathy) plugins.<br />
For Akonadi plugin, we want to pass an <tt style="background: #ebebeb; font-size: 13px;">EntityTreeModel</tt> to use it as data source, which would be impossible if we use system-wide plugin system.</p>
<hr class="remarkup-hr" />
<p>I've also noted several issues not directly related to this patch, but it would be nice to fix those anyways.</p>
<ul class="remarkup-list">
<li class="remarkup-list-item">There some ancient compatibility code inside <tt style="background: #ebebeb; font-size: 13px;">PersonPluginManagerPrivate::loadDataSourcePlugins()</tt>, which was added 3 years ago. Apparently, it's not needed anymore.</li>
<li class="remarkup-list-item">Inside <tt style="background: #ebebeb; font-size: 13px;">widgets/CMakeLists.txt</tt>, its headers are installed with PREFIX <tt style="background: #ebebeb; font-size: 13px;">KPeople</tt> instead of <tt style="background: #ebebeb; font-size: 13px;">KPeople/Widgets</tt>. Because of that <tt style="background: #ebebeb; font-size: 13px;">#include <KPeople/Widgets/PersonDetailsView></tt> does not work, because it refers to non-existent header <tt style="background: #ebebeb; font-size: 13px;">kpeople/persondetailsview.h</tt>.</li>
<li class="remarkup-list-item">In the same file, there is redundant <tt style="background: #ebebeb; font-size: 13px;">install(FILES [...])</tt>, which does not install any file (line 46)</li>
</ul>
<p>If it's OK, I can add those changes without posting a differential revision (since they're trivial).</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>It compiles, it works.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R307 KPeople</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D15431">https://phabricator.kde.org/D15431</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>autotests/persondatatests.cpp<br />
autotests/personsmodeltest.cpp<br />
autotests/personsproxymodeltest.cpp<br />
src/CMakeLists.txt<br />
src/global.cpp<br />
src/persondata.cpp<br />
src/personpluginmanager.cpp<br />
src/personpluginmanager.h<br />
src/personpluginmanager_p.h<br />
src/personsmodel.cpp</div></div></div><br /><div><strong>To: </strong>poboiko, KDE PIM, dvratil, apol<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns, dvasin, rodsevich, winterz, vkrause, mlaurent, knauss, dvratil<br /></div>