<table><tr><td style="">kossebau added a comment.
</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/D19939">View Revision</a></tr></table><br /><div><div><p>So the solution would be to cache the calculated result. Which would also allow to have this as flag for some proper post-install cleanup once that is sorted out and defined.</p>
<p>Problem is: <tt style="background: #ebebeb; font-size: 13px;">KNSCore::Installation</tt> is an exported class, with an installed header. So it would need to stay binary compatible.<br />
Unless we give the comment "<span class="phabricator-remarkup-mention-unknown">@internal</span>" in the class documentation more emphasis. Not sure though if people have been aware of that, given the resulting API dox page does not carry that information bit: <a href="https://api.kde.org/frameworks/knewstuff/html/classKNSCore_1_1Installation.html" class="remarkup-link" target="_blank" rel="noreferrer">https://api.kde.org/frameworks/knewstuff/html/classKNSCore_1_1Installation.html</a></p>
<p>Now does the class not have a pimpl implementation, so we could simply add another data item.<br />
Another option would be to reuse the existing set of directory/path members for the different installation dir types, where only one of is used. By the cost of a bit more fragile logic due to the abuse, but what else could be done?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R304 KNewStuff</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D19939">https://phabricator.kde.org/D19939</a></div></div><br /><div><strong>To: </strong>kossebau, Frameworks, leinir, apol<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>