[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498

Maximiliano Curia maxy at moszumanska.debian.org
Fri Oct 14 14:28:03 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=2cffbed

The following commit has been merged in the master branch:
commit 2cffbedcd45f1d70dbf99b4112ab03ab2eeca9f4
Author: Albert Vaca <albertvaka at gmail.com>
Date:   Fri Sep 26 17:36:39 2014 +0200

    Added --refresh option to the CLI tool.
---
 cli/kdeconnect-cli.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/cli/kdeconnect-cli.cpp b/cli/kdeconnect-cli.cpp
index 08accee..46dd05c 100644
--- a/cli/kdeconnect-cli.cpp
+++ b/cli/kdeconnect-cli.cpp
@@ -38,10 +38,11 @@ int main(int argc, char** argv)
     KCmdLineOptions options;
     options.add("l")
            .add("list-devices", ki18n("List all devices"));
-    options.add("share <path>", ki18n("Share a file to a said device"));
+    options.add("refresh", ki18n("Search for devices in the network and re-establish connections."));
     options.add("pair", ki18n("Request pairing to a said device"));
     options.add("unpair", ki18n("Stop pairing to a said device"));
     options.add("ping", ki18n("Sends a ping to said device"));
+    options.add("share <path>", ki18n("Share a file to a said device"));
     options.add("list-notifications", ki18n("Display the notifications on a said device"));
     options.add("device <dev>", ki18n("Device ID"));
     KCmdLineArgs::addCmdLineOptions( options );
@@ -67,6 +68,9 @@ int main(int argc, char** argv)
                       << ": " << idx.data(DevicesModel::IdModelRole).toString().toStdString() << ' ' << statusInfo.toStdString() << std::endl;
         }
         std::cout << devices.rowCount() << " devices found" << std::endl;
+    } else if(args->isSet("refresh")) {
+        QDBusMessage msg = QDBusMessage::createMethodCall("org.kde.kdeconnect", "/modules/kdeconnect", "org.kde.kdeconnect.daemon", "forceOnNetworkChange");
+        QDBusConnection::sessionBus().call(msg);
     } else {
         QString device;
         if(!args->isSet("device")) {

-- 
kdeconnect packaging



More information about the pkg-kde-commits mailing list