Pings can now display custom messages

Probably pings should be disabled by default, could be a source of spam.
This commit is contained in:
Albert Vaca 2013-08-19 17:24:58 +02:00
parent 87141a344c
commit ff0591aecc

View file

@ -47,7 +47,7 @@ bool PingPlugin::receivePackage(const NetworkPackage& np)
notification->setPixmap(KIcon("dialog-ok").pixmap(48, 48)); notification->setPixmap(KIcon("dialog-ok").pixmap(48, 48));
notification->setComponentData(KComponentData("kdeconnect", "kdeconnect")); notification->setComponentData(KComponentData("kdeconnect", "kdeconnect"));
notification->setTitle(device()->name()); notification->setTitle(device()->name());
notification->setText("Ping!"); notification->setText(np->get<QString>("message","Ping!"));
notification->sendEvent(); notification->sendEvent();
return true; return true;