<table><tr><td style="">bshah 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/D28509">View Revision</a></tr></table><br /><div><div><p>Great! Since phab ate my nice commit message here we go,</p>

<p>I've re-worked previous revision of patch little bit differently,</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Instead of originally planned Watcher class, now there is WatchedNotificationsModel</li>
<li class="remarkup-list-item">Most if not all of original NotificationsModel code is now moved to AbstractNotificationsModel (this move is why the patch looks giant, but there's not that much extra code)</li>
<li class="remarkup-list-item">WatchedNotificationsModel extends AbstractNM, and instead of connecting to notification server instance directly, it talks with notificationmanager dbus interface</li>
<li class="remarkup-list-item">And when methods on this bus are called, it adds data in model.</li>
</ul>

<p>There's some bugs and todos, but they are small enough:</p>

<ul class="remarkup-list">
<li class="remarkup-list-item">Unregister watcher when dbus service disappears</li>
<li class="remarkup-list-item">Fix the notification body being weird xml</li>
<li class="remarkup-list-item">Maybe add the test.qml I used for testing in repository</li>
</ul>

<p>I particularly need direction/help for issue 2.</p>

<p>As for testing this, I made sure that all functions of notifications are functional in the notification applet in plasmoidviewer and on watcher side checked if actions are correctly invoked, notifications are added removed properly.</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/D28509">https://phabricator.kde.org/D28509</a></div></div><br /><div><strong>To: </strong>bshah, Plasma, broulik, davidedmundson<br /><strong>Cc: </strong>nicolasfella, plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>