Signal in KNotify : DCop problems
Olivier Goffart
ogoffart at tiscalinet.be
Sun Jun 8 19:48:46 BST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello.
I already posted this mail on kde-devel at kde.org , but i get no answer, so i
re-ask here.
I would like to add the possibility to click on the passive-popup or to add a
button in the messagebox from KNotify (It has already been discussed before:
http://lists.kde.org/?l=kde-devel&m=104947326116856&w=2)
Something like KNotifyClient::event (const QString &message, const QString
&text , const KGuilItem &actionText, QObject * , const char *slot) would be
usefull.
there are numerous example: in KMail, the clicking on a "View Message" in the
new mail notify messagebox show the mail. Or in Kopete, clicking on the
passivepopup showed when an user goes online open a chat with this user.
I already did a code which show a passivepopup with a link, and that works
fine. There are no problem at the ui level. The problem is that KNotify use
DCop, and i don't see how i can handle the signal with it, and fire the QT
signal passed as argument.
My first question is why does KNotify use DCop? I heard it is because we
don't want to load artslib in every application. then, why not doing a
deamon, accessible via dcop, which handle only the sound-playing. and all
the other code is left in KNotifyClient (the passive-popup, the messagebox,
and all other visual stuff) in this way, we can use the signal.
Or maybe it is possible to link a dcop-signal with a qt signal. but it would
be hard i think.
I'm waiting for feedback, and sorry for my bad english.
Thanks
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+44USz58lY8jWrL0RAh89AJ9r3FEGGkGuBBeB/KX0q8+AiXQs3wCfZEBo
zwSwd4kv2Hd+1YIMVutMV80=
=5T9a
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list