@@ -66,6 +66,7 @@ QString DBusInterface::introspect(const QString &path) const
6666 "<interface name=\"com.canonical.Unity.Launcher.Item\">"
6767 "<property name=\"count\" type=\"i\" access=\"readwrite\" />"
6868 "<property name=\"countVisible\" type=\"b\" access=\"readwrite\" />"
69+ "<property name=\"alerting\" type=\"b\" access=\"readwrite\" />"
6970 "</interface>";
7071 return nodeiface;
7172}
@@ -168,6 +169,8 @@ bool DBusInterface::handleMessage(const QDBusMessage& message, const QDBusConnec
168169 retval.append(QVariant::fromValue(QDBusVariant(item->count())));
169170 } else if (message.arguments()[1].toString() == "countVisible") {
170171 retval.append(QVariant::fromValue(QDBusVariant(item->countVisible())));
172+ } else if (message.arguments()[1].toString() == "alerting") {
173+ retval.append(QVariant::fromValue(QDBusVariant(item->alerting())));
171174 }
172175 } else if (message.member() == "Set") {
173176 if (message.arguments()[1].toString() == "count") {
@@ -182,6 +185,12 @@ bool DBusInterface::handleMessage(const QDBusMessage& message, const QDBusConnec
182185 Q_EMIT countVisibleChanged(appid, newVisible);
183186 notifyPropertyChanged("com.canonical.Unity.Launcher.Item", encodeAppId(appid), "countVisible", newVisible);
184187 }
188+ } else if (message.arguments()[1].toString() == "alerting") {
189+ bool newAlerting = message.arguments()[2].value<QDBusVariant>().variant().toBool();
190+ if (!item || newAlerting != item->alerting()) {
191+ Q_EMIT alertingChanged(appid, newAlerting);
192+ notifyPropertyChanged("com.canonical.Unity.Launcher.Item", encodeAppId(appid), "alerting", newAlerting);
193+ }
185194 }
186195 } else if (message.member() == "GetAll") {
187196 if (item) {