ConnectionManager: add connectDevice(InfoHash)

Change-Id: I5179a05b63b4576f468d76c00f1aa9fe3c2e4083
diff --git a/include/connectionmanager.h b/include/connectionmanager.h
index e459eb3..17300dc 100644
--- a/include/connectionmanager.h
+++ b/include/connectionmanager.h
@@ -72,6 +72,8 @@
  * Used by connectDevice, when the socket is ready
  */
 using ConnectCallback = std::function<void(const std::shared_ptr<ChannelSocket>&, const DeviceId&)>;
+using ConnectCallbackLegacy = std::function<void(const std::shared_ptr<ChannelSocket>&, const dht::InfoHash&)>;
+
 /**
  * Used when an incoming connection is ready
  */
@@ -111,6 +113,13 @@
                        bool noNewSocket = false,
                        bool forceNewSocket = false,
                        const std::string& connType = "");
+    void connectDevice(const dht::InfoHash& deviceId,
+                       const std::string& name,
+                       ConnectCallbackLegacy cb,
+                       bool noNewSocket = false,
+                       bool forceNewSocket = false,
+                       const std::string& connType = "");
+
     void connectDevice(const std::shared_ptr<dht::crypto::Certificate>& cert,
                        const std::string& name,
                        ConnectCallback cb,