An action in KNotify

Olivier Goffart ogoffart at tiscalinet.be
Wed Aug 20 09:59:07 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Since i didn't get real answer on kde-devel, i retry here.


I coded, for Kopete, a nice feature in KNotify.
It allow us to add an action in KNotify in visual effect (a link in the 
passive popup, or a button in the messagebox)

it looks like this:
http://gof.homeip.net/olivier/passivepopup.png

The action is handled by the application.

To do that, i modified the knotifyclient. I commited it in 
kdenonbeta/kopete/libkopete/compat

Technicaly, i moved some code from the knotify deamon to the knotifyclient 
itself. I left just the sound notification to the deamon. It is simply 
because i did not found simple way to translate a qt slot via DCop safely.

I would like to add it in the kdelibs.
However, we can't place it in kdecore because it use some kdewidget (like 
kmessagebox, kguiitem, kpassivepopup and kactivelabel)
And moving it to kdeui is maybe not a solution. kcompletion in kdecore uses 
the knotifyclient.

Anyway i think it is a great addition, and a don't want to have such as 
duplicate code in kopete.
(and yould be also usefull for opthers application, like KMail when you 
receive a new mail)

What do you think?


(sorry for my bad english)
- --
Olivier 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/Qzhbz58lY8jWrL0RAqW2AJwIivAtt1N3ze+eMYXKRxYvJrs7tgCgkxYB
ZRFd5ZWc1Zzcfg/hi/QP+Fo=
=jG2P
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list