Changed sms notification message

This commit is contained in:
Albert Vaca 2013-08-01 02:32:43 +02:00
parent 814001029e
commit 936d843194

View file

@ -35,7 +35,6 @@ KNotification* NotificationPackageInterface::createNotification(const QString& d
if (npType == "ringing") { if (npType == "ringing") {
type = "callReceived"; type = "callReceived";
icon = "call-start"; icon = "call-start";
QString number =
content = "Incoming call from " + np.get<QString>("phoneNumber","unknown number"); content = "Incoming call from " + np.get<QString>("phoneNumber","unknown number");
} else if (npType == "missedCall") { } else if (npType == "missedCall") {
type = "missedCall"; type = "missedCall";
@ -44,7 +43,10 @@ KNotification* NotificationPackageInterface::createNotification(const QString& d
} else if (npType == "sms") { } else if (npType == "sms") {
type = "smsReceived"; type = "smsReceived";
icon = "mail-receive"; icon = "mail-receive";
content = "SMS received from " + np.get<QString>("phoneNumber","unknown number"); content = "SMS from "
+ np.get<QString>("phoneNumber","unknown number")
+ ":\n"
+ np.get<QString>("messageBody","");
} else if (npType == "battery") { } else if (npType == "battery") {
type = "battery100"; type = "battery100";
icon = "battery-100"; icon = "battery-100";