|
|
|
@ -69,7 +69,7 @@ TQString NotificationsService::objectPath() const {
|
|
|
|
|
bool NotificationsService::GetCapabilities(TQStringList& return_caps, TQT_DBusError& error) {
|
|
|
|
|
|
|
|
|
|
return_caps.clear();
|
|
|
|
|
return_caps << "actions" << "body" << "body-hyperlinks" << "body-markup" << "icon-static";
|
|
|
|
|
return_caps << "action-icons" << "actions" << "body" << "body-hyperlinks" << "body-markup" << "icon-static";
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
@ -103,17 +103,20 @@ void NotificationsService::NotifyAsync(
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
notificationMap[id] = new NotifyWidget(0, app_name.ascii(), this, id );
|
|
|
|
|
|
|
|
|
|
notificationMap[id]->setFrameStyle( TQFrame::NoFrame );
|
|
|
|
|
notificationMap[id]->setIcon(icon);
|
|
|
|
|
notificationMap[id]->setPaletteBackgroundColor(TQt::black);
|
|
|
|
|
notificationMap[id]->setPaletteForegroundColor(TQt::white);
|
|
|
|
|
// TODO: handle hypertext in the body
|
|
|
|
|
notificationMap[id]->setText(app_name + ": " + summary + "\n" + body);
|
|
|
|
|
|
|
|
|
|
if (icon.isEmpty() || ! notificationMap[id]->setIcon(icon)) {
|
|
|
|
|
notificationMap[id]->setTextFormat(TQt::RichText);
|
|
|
|
|
notificationMap[id]->setText(app_name + ":\n" + summary + "\n" + body);
|
|
|
|
|
}
|
|
|
|
|
notificationMap[id]->setActions(actions);
|
|
|
|
|
notificationMap[id]->setHints(hints);
|
|
|
|
|
notificationMap[id]->setTimeout(timeout);
|
|
|
|
|
notificationMap[id]->show();
|
|
|
|
|
notificationMap[id]->raise();
|
|
|
|
|
notificationMap[id]->show();
|
|
|
|
|
notificationMap[id]->setActiveWindow();
|
|
|
|
|
|
|
|
|
|
NotifyAsyncReply(asyncCallId, id);
|
|
|
|
|