<table><tr><td style="">ivan 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/D8524" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>The activities cache is a private class meant to communicate directly to KAMD. The signals it contains are in the form <tt style="background: #ebebeb; font-size: 13px;">(activity id, something)</tt> and are meant to be private. The <tt style="background: #ebebeb; font-size: 13px;">KActivities::Info</tt> class was meant to wrap these signals into a nice OO API where an activity object (Info) sends signals that a particular property has changed.</p>

<p>I don't like the idea of exposing the same thing multiple times with different APIs. In the 4.x era, we had one function with the <tt style="background: #ebebeb; font-size: 13px;">(id, something)</tt> format and it was removed by request (during API review) during KF5-ization of KActivities library.</p>

<p>One possible solution to all this (though I'm not sure I like it) is to add a class to KActivities API that keeps maintains a collection of Info objects (exposing the cache in a sense) - it could have <tt style="background: #ebebeb; font-size: 13px;">activityAdded(Info*)</tt>, <tt style="background: #ebebeb; font-size: 13px;">activityRemoved(Info*)</tt> and <tt style="background: #ebebeb; font-size: 13px;">activityChanged(Info*)</tt> or something similar.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8524" rel="noreferrer">https://phabricator.kde.org/D8524</a></div></div><br /><div><strong>To: </strong>hein, Plasma, davidedmundson<br /><strong>Cc: </strong>davidedmundson, anthonyfieroni, ivan, plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>