PDA

View Full Version : KDE4- system tray notification like kNEmo (establish connection), Ark (progress), etc



giaur
26th November 2009, 22:53
Hello,

I need to notify user with some messages - popup in system tray. In KDE4, there are many programs, that use this, for example:
- KNemo when new connection is established
- Kopete when new message is received
- Ark - archive pack/unpack progress

What QT/KDE libs clas should I use to implement this?

squidge
26th November 2009, 23:41
Have you looked at QSystemTrayIcon?

giaur
27th November 2009, 08:57
Do you mean QSystemTrayIcon::showMessage ? No, I haven't try this but I'm not sure if this is what I'm looking for. For example, Konqueror displays progress bar when file is downloading, and this is not tray icon related (there is no Konqueror tray icon - the message apperas next to tray icons area)

And I can't see any QSystemTrayIcon method, that allow me to display progress bar...

ComaWhite
29th November 2009, 08:24
The download notifications like that are done in KDE4s library called KIO. and the other is KNotifications.