Commit d4ce9bac authored by Albert Vaca Cintora's avatar Albert Vaca Cintora

Removed unused notifications

parent 8309879a
...@@ -15,72 +15,12 @@ Action=Popup ...@@ -15,72 +15,12 @@ Action=Popup
[Event/smsReceived] [Event/smsReceived]
Name=SMS Name=SMS
Comment=Someone sent you a SMS Comment=Someone sent you an SMS
Action=Popup
[Event/mmsReceived]
Name=MMS
Comment=Someone sent you a MMS
Action=Popup Action=Popup
[Event/batteryLow] [Event/batteryLow]
Name=Battery Name=Battery
Comment=Your battery is in low state (Discharging) Comment=Your battery is in low state
Action=Popup
[Event/batteryCaution]
Name=Battery
Comment=Your battery is in caution state (Discharging)
Action=Popup
[Event/battery040]
Name=Battery
Comment=Your battery is at 40% (Discharging)
Action=Popup
[Event/battery060]
Name=Battery
Comment=Your battery is at 60% (Discharging)
Action=Popup
[Event/battery080]
Name=Battery
Comment=Your battery is at 80% (Discharging)
Action=Popup
[Event/battery100]
Name=Battery
Comment=Your battery is at 100% (Discharging)
Action=Popup
[Event/batteryChargingLow]
Name=Battery
Comment=Your battery is in low state (Charging)
Action=Popup
[Event/batteryChargingCaution]
Name=Battery
Comment=Your battery is in caution state (Charging)
Action=Popup
[Event/batteryCharging040]
Name=Battery
Comment=Your battery is at 40% (Charging)
Action=Popup
[Event/batteryCharging060]
Name=Battery
Comment=Your battery is at 60% (Charging)
Action=Popup
[Event/batteryCharging080]
Name=Battery
Comment=Your battery is at 80% (Charging)
Action=Popup
[Event/batteryCharging100]
Name=Battery
Comment=Your battery is at 100% (Charging)
Action=Popup Action=Popup
[Event/pingReceived] [Event/pingReceived]
......
...@@ -69,7 +69,7 @@ bool BatteryPlugin::receivePackage(const NetworkPackage& np) ...@@ -69,7 +69,7 @@ bool BatteryPlugin::receivePackage(const NetworkPackage& np)
batteryDbusInterface->updateValues(isCharging, currentCharge); batteryDbusInterface->updateValues(isCharging, currentCharge);
if (currentCharge == 14 && !isCharging) { if (currentCharge == 14 && !isCharging) {
KNotification* notification = new KNotification("battery100"); KNotification* notification = new KNotification("batteryLow");
notification->setPixmap(KIcon("battery-040").pixmap(48, 48)); notification->setPixmap(KIcon("battery-040").pixmap(48, 48));
notification->setComponentData(KComponentData("kdeconnect", "kdeconnect")); notification->setComponentData(KComponentData("kdeconnect", "kdeconnect"));
notification->setTitle(device()->name() + ": low battery"); notification->setTitle(device()->name() + ": low battery");
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment