http://bugs.meego.com/show_bug.cgi?id=3560
Summary: D-Bus: suppress notifications on demand
Classification: MeeGo Projects
Product: SyncEvolution
Version: unspecified
Platform: All
Architecture: ---
Status: ASSIGNED
Severity: enhancement
Priority: Medium
Component: SyncEvolution
AssignedTo: patrick.ohly(a)intel.com
ReportedBy: patrick.ohly(a)intel.com
QAContact: jingke.zhang(a)intel.com
CC: syncevolution-bugs(a)meego.bugs,
syncevolution-default-bugs(a)meego.bugs
Estimated Hours: 0.0
From [SyncEvolution] Lessons from Genesis development: Enhancement
proposals
Problem:
The syncevo-dbus-server handles user notifications itself (e.g.
for automated syncs.) A GUI might want to notify users about
syncs itself. E.g. Genesis shows a spinning status icon, which
makes the sync started/sync ended notifications of
syncevo-dbus-server redundant.
Proposed Solution:
Clients should be able to tell syncevo-dbus-server not to
display sync notifications. I propose a method
Server.InhibitNotification(bool) which could be used to inhibit
notifications when Genesis is started and allow notifications
before it terminates.
Instead of a simple boolean, let's keep the option open to enable and disable
specific notifications. Thus adding a string parameter and two methods:
<method name="DisableNotifications">
<doc:doc>
<doc:description>
Prevents showing of user visible notifications by the
syncevo-dbus-server.
Must be called while the client is attached to the server.
Notifications
will be disabled until the client detaches or calls
UnlockNotifications().
</doc:description>
</doc:doc>
<arg type="s" name="notifications"
direction="in">
<doc:doc><doc:summary>
describes the notifications which are to be disabled; currently
ignored by server, pass empty string
</doc:summary></doc:doc>
</arg>
</method>
<method name="EnableNotifications">
<doc:doc>
<doc:description>
Allows showing of user visible notifications again.
</doc:description>
</doc:doc>
<arg type="s" name="notifications"
direction="in">
<doc:doc><doc:summary>
describes the notifications which are to be ensabled; currently
ignored by server, pass empty string
</doc:summary></doc:doc>
</arg>
</method>
--
Configure bugmail:
http://bugs.meego.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching someone on the CC list of the bug.