Integrate DesktopNotification into system tray/status notifier
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 2 Mar 2010 23:08:21 +0000 (00:08 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Wed, 3 Mar 2010 01:36:37 +0000 (02:36 +0100)
commit5ba28fb36a747bd9a2c05a58f0533d1e38c2a0de
treec439230109f644922679c16c08f85a3e112a5771
parent52cfbc8ee8f4da6f28c6afef089f8179434e717d
Integrate DesktopNotification into system tray/status notifier

Since the DBus notification spec is quite widespread by now, and in fact KDE's
StatusNotifierItem uses that same spec for displaying popup messages, we now
integrate the former DesktopNotification into StatusNotifierItem.

If DBus or a NotificationsClient are not present, we fall back to traditional systray
popups. This could be fugly if we have StatusNotifier, but not NotificationsClient, but
all platforms supporting the former should also support the latter by now.

Having this in SystemTray also makes our notification handling code much nicer, and we have
one less backend to care about. Additionally, users using current versions of KDE or GNOME
will get pretty popups automatically.
13 files changed:
src/qtui/CMakeLists.txt
src/qtui/desktopnotificationbackend.cpp [deleted file]
src/qtui/desktopnotificationbackend.h [deleted file]
src/qtui/legacysystemtray.cpp
src/qtui/legacysystemtray.h
src/qtui/mainwin.cpp
src/qtui/statusnotifieritem.cpp
src/qtui/statusnotifieritem.h
src/qtui/systemtray.cpp
src/qtui/systemtray.h
src/qtui/systraynotificationbackend.cpp
src/qtui/systraynotificationbackend.h
src/qtui/ui/desktopnotificationconfigwidget.ui [deleted file]