MCPcopy Create free account
hub / github.com/barry-ran/QtScrcpy / updateDeviceState

Method updateDeviceState

QtScrcpy/groupcontroller/groupcontroller.cpp:37–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void GroupController::updateDeviceState(const QString &serial)
38{
39 if (!m_devices.contains(serial)) {
40 return;
41 }
42
43 auto device = qsc::IDeviceManage::getInstance().getDevice(serial);
44 if (!device) {
45 return;
46 }
47
48 if (isHost(serial)) {
49 device->registerDeviceObserver(this);
50 } else {
51 device->deRegisterDeviceObserver(this);
52 }
53}
54
55void GroupController::addDevice(const QString &serial)
56{

Callers 1

updateGroupControlMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected