diff --git a/daemon/plugins/telephony/telephonyplugin.cpp b/daemon/plugins/telephony/telephonyplugin.cpp index 5029d324a..29282ead2 100644 --- a/daemon/plugins/telephony/telephonyplugin.cpp +++ b/daemon/plugins/telephony/telephonyplugin.cpp @@ -35,24 +35,24 @@ TelephonyPlugin::TelephonyPlugin(QObject *parent, const QVariantList &args) KNotification* TelephonyPlugin::createNotification(const NetworkPackage& np) { - QString npType = np.get("notificationType"); + QString event = np.get("event"); QString title, content, type, icon; bool transient; title = device()->name(); - if (npType == "ringing") { + if (event == "ringing") { type = "callReceived"; icon = "call-start"; content = "Incoming call from " + np.get("phoneNumber","unknown number"); transient = false; - } else if (npType == "missedCall") { + } else if (event == "missedCall") { type = "missedCall"; icon = "call-start"; content = "Missed call from " + np.get("phoneNumber","unknown number"); transient = true; - } else if (npType == "sms") { + } else if (event == "sms") { type = "smsReceived"; icon = "mail-receive"; content = "SMS from " @@ -64,7 +64,7 @@ KNotification* TelephonyPlugin::createNotification(const NetworkPackage& np) //TODO: return NULL if !debug type = "unknownEvent"; icon = "pda"; - content = "Unknown notification type: " + npType; + content = "Unknown notification type: " + event; transient = false; }