Changeset View
Changeset View
Standalone View
Standalone View
dataengines/notifications/notificationsengine.cpp
Show First 20 Lines • Show All 203 Lines • ▼ Show 20 Line(s) | 195 | { | |||
---|---|---|---|---|---|
204 | const QString appRealName = hints[QStringLiteral("x-kde-appname")].toString(); | 204 | const QString appRealName = hints[QStringLiteral("x-kde-appname")].toString(); | ||
205 | const QString eventId = hints[QStringLiteral("x-kde-eventId")].toString(); | 205 | const QString eventId = hints[QStringLiteral("x-kde-eventId")].toString(); | ||
206 | const bool skipGrouping = hints[QStringLiteral("x-kde-skipGrouping")].toBool(); | 206 | const bool skipGrouping = hints[QStringLiteral("x-kde-skipGrouping")].toBool(); | ||
207 | const QStringList &urls = hints[QStringLiteral("x-kde-urls")].toStringList(); | 207 | const QStringList &urls = hints[QStringLiteral("x-kde-urls")].toStringList(); | ||
208 | const QString &desktopEntry = hints[QStringLiteral("desktop-entry")].toString(); | 208 | const QString &desktopEntry = hints[QStringLiteral("desktop-entry")].toString(); | ||
209 | 209 | | |||
210 | // group notifications that have the same title coming from the same app | 210 | // group notifications that have the same title coming from the same app | ||
211 | // or if they are on the "blacklist", honor the skipGrouping hint sent | 211 | // or if they are on the "blacklist", honor the skipGrouping hint sent | ||
212 | if (!replaces_id && m_activeNotifications.values().contains(app_name + summary) && !skipGrouping && !m_alwaysReplaceAppsList.contains(app_name)) { | 212 | if (!replaces_id && m_activeNotifications.values().contains(app_name + summary) && !skipGrouping && urls.isEmpty() && !m_alwaysReplaceAppsList.contains(app_name)) { | ||
213 | // cut off the "notification " from the source name | 213 | // cut off the "notification " from the source name | ||
214 | partOf = m_activeNotifications.key(app_name + summary).midRef(13).toUInt(); | 214 | partOf = m_activeNotifications.key(app_name + summary).midRef(13).toUInt(); | ||
215 | } | 215 | } | ||
216 | 216 | | |||
217 | qDebug() << "Currrent active notifications:" << m_activeNotifications; | 217 | qDebug() << "Currrent active notifications:" << m_activeNotifications; | ||
218 | qDebug() << "Guessing partOf as:" << partOf; | 218 | qDebug() << "Guessing partOf as:" << partOf; | ||
219 | qDebug() << " New Notification: " << summary << body << timeout << "& Part of:" << partOf; | 219 | qDebug() << " New Notification: " << summary << body << timeout << "& Part of:" << partOf; | ||
220 | QString bodyFinal = NotificationSanitizer::parse(body); | 220 | QString bodyFinal = NotificationSanitizer::parse(body); | ||
▲ Show 20 Lines • Show All 255 Lines • Show Last 20 Lines |