changes in notifications

This commit is contained in:
arcan1s
2015-02-14 21:25:18 +03:00
parent e5006ed2d6
commit 30577e91ec
5 changed files with 24 additions and 20 deletions

View File

@ -195,8 +195,10 @@ void AWActions::writeDataEngineConfiguration(const QMap<QString, QVariant> confi
}
void AWActions::sendNotification(const QString eventId, const QString message)
void AWActions::sendNotification(const QString eventId, const QString message, const bool enablePopup)
{
if ((eventId == QString("event")) && (!enablePopup)) return;
KNotification *notification = KNotification::event(eventId, QString("Awesome Widget ::: ") + eventId, message);
notification->setComponentName(QString("plasma-applet-org.kde.plasma.awesome-widget"));
}