<table><tr><td style="">nicolasfella created this revision.<br />nicolasfella added a reviewer: Frameworks.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />nicolasfella 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/D22544">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>KPassivePopup is hideous and broken in many ways. Currently it serves two purposes:</p>

<ol class="remarkup-list">
<li class="remarkup-list-item">As a fallback for when no other notification system is available. (Non-linux or when no notification daemon is running). For Windows and macOS we're about to get proper native notifcation support. The case where no notification daemon is running is IMHO an edge case that we don't need to support. Removing the fallback would allow to clean up the implementation and public API (for KF6) of KNotifications.</li>
<li class="remarkup-list-item">Directly by applicatins. A guick grep over the KDE codebase found few users of it (KHTML, KDevelop, Lokalize and KTeaTime).</li>
</ol>

<p>Given it's brokeness and relative usefulness I propose to remove it. Since it's public API of KNotifications we obviously only can to it in KF6, so I propose to mark it as deprecated now and remove it in the KF6 transition.</p>

<p>Marking it as deprecated currently has a nasty side effect: Since it is still used internally (until we decide to drop the notification fallback) this results in deprecation warnings when building KNotifications. I'd be fine with not merging this patch for this reason, my main intention of this patch is to trigger a discussion about the future.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R289 KNotifications</div></div></div><br /><div><strong>BRANCH</strong><div><div>dep</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D22544">https://phabricator.kde.org/D22544</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/kpassivepopup.h</div></div></div><br /><div><strong>To: </strong>nicolasfella, Frameworks<br /><strong>Cc: </strong>kde-frameworks-devel, LeGast00n, sbergeron, michaelh, ngraham, bruns<br /></div>