I am looking of a way to create popup notifications in KDE 4.7 like the ones that the battery monitor, the network manager and Amarok create (the ones that are listed under "Notifications and jobs").
(screenshot below)

Is there a C++ API to create these? Or an API in any language? Or a command?