Removed unused variable and extra line breaks

This commit is contained in:
Albert Vaca 2013-08-16 08:25:29 +02:00
parent f087871ee4
commit 5f1c7b8c56
2 changed files with 0 additions and 7 deletions

View file

@ -23,11 +23,9 @@
#include <QDebug> #include <QDebug>
#include <kicon.h> #include <kicon.h>
K_PLUGIN_FACTORY( KdeConnectPluginFactory, registerPlugin< NotificationsPlugin >(); ) K_PLUGIN_FACTORY( KdeConnectPluginFactory, registerPlugin< NotificationsPlugin >(); )
K_EXPORT_PLUGIN( KdeConnectPluginFactory("kdeconnect_notifications", "kdeconnect_notifications") ) K_EXPORT_PLUGIN( KdeConnectPluginFactory("kdeconnect_notifications", "kdeconnect_notifications") )
NotificationsPlugin::NotificationsPlugin(QObject* parent, const QVariantList& args) NotificationsPlugin::NotificationsPlugin(QObject* parent, const QVariantList& args)
: KdeConnectPlugin(parent, args) : KdeConnectPlugin(parent, args)
{ {

View file

@ -38,7 +38,6 @@ KNotification* TelephonyPlugin::createNotification(const NetworkPackage& np)
QString event = np.get<QString>("event"); QString event = np.get<QString>("event");
QString title, content, type, icon; QString title, content, type, icon;
bool transient;
title = device()->name(); title = device()->name();
@ -46,12 +45,10 @@ KNotification* TelephonyPlugin::createNotification(const NetworkPackage& np)
type = "callReceived"; type = "callReceived";
icon = "call-start"; icon = "call-start";
content = "Incoming call from " + np.get<QString>("phoneNumber","unknown number"); content = "Incoming call from " + np.get<QString>("phoneNumber","unknown number");
transient = false;
} else if (event == "missedCall") { } else if (event == "missedCall") {
type = "missedCall"; type = "missedCall";
icon = "call-start"; icon = "call-start";
content = "Missed call from " + np.get<QString>("phoneNumber","unknown number"); content = "Missed call from " + np.get<QString>("phoneNumber","unknown number");
transient = true;
} else if (event == "sms") { } else if (event == "sms") {
type = "smsReceived"; type = "smsReceived";
icon = "mail-receive"; icon = "mail-receive";
@ -59,13 +56,11 @@ KNotification* TelephonyPlugin::createNotification(const NetworkPackage& np)
+ np.get<QString>("phoneNumber","unknown number") + np.get<QString>("phoneNumber","unknown number")
+ ":\n" + ":\n"
+ np.get<QString>("messageBody",""); + np.get<QString>("messageBody","");
transient = true;
} else { } else {
//TODO: return NULL if !debug //TODO: return NULL if !debug
type = "unknownEvent"; type = "unknownEvent";
icon = "pda"; icon = "pda";
content = "Unknown notification type: " + event; content = "Unknown notification type: " + event;
transient = false;
} }
qDebug() << "Creating notification with type:" << type; qDebug() << "Creating notification with type:" << type;