MCPcopy Create free account
hub / github.com/KDAB/GammaRay / create

Method create

core/remote/serverdevice.cpp:41–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41ServerDevice *ServerDevice::create(const QUrl &serverAddress, QObject *parent)
42{
43 ServerDevice *device = nullptr;
44 if (serverAddress.scheme() == QLatin1String("tcp"))
45 device = new TcpServerDevice(parent);
46 else if (serverAddress.scheme() == QLatin1String("local"))
47 device = new LocalServerDevice(parent);
48
49 if (!device) {
50 qWarning() << "Unsupported transport protocol:" << serverAddress.toString();
51 return nullptr;
52 }
53 device->setServerAddress(serverAddress);
54 return device;
55}

Callers 3

PropertyControllerMethod · 0.45
loadExtensionMethod · 0.45
methodargument.cppFile · 0.45

Calls 1

setServerAddressMethod · 0.80

Tested by

no test coverage detected