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 <kicon.h>
K_PLUGIN_FACTORY( KdeConnectPluginFactory, registerPlugin< NotificationsPlugin >(); )
K_EXPORT_PLUGIN( KdeConnectPluginFactory("kdeconnect_notifications", "kdeconnect_notifications") )
NotificationsPlugin::NotificationsPlugin(QObject* parent, const QVariantList& args)
: KdeConnectPlugin(parent, args)
{

View file

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