| 96 | } |
| 97 | |
| 98 | void SystemControl::setSysCaptureEnable(bool enable) |
| 99 | { |
| 100 | if (_sysCaptEnabled != enable) |
| 101 | { |
| 102 | if (enable) |
| 103 | { |
| 104 | _hyperhdr->registerInput(_sysCaptPrio, hyperhdr::COMP_SYSTEMGRABBER, "System", _sysCaptName); |
| 105 | connect(GlobalSignals::getInstance(), &GlobalSignals::SignalNewSystemImage, this, &SystemControl::handleSysImage, Qt::UniqueConnection); |
| 106 | } |
| 107 | else |
| 108 | { |
| 109 | disconnect(GlobalSignals::getInstance(), &GlobalSignals::SignalNewSystemImage, this, &SystemControl::handleSysImage); |
| 110 | _hyperhdr->clear(_sysCaptPrio); |
| 111 | _sysInactiveTimer->stop(); |
| 112 | } |
| 113 | |
| 114 | _sysCaptEnabled = enable; |
| 115 | _hyperhdr->setNewComponentState(hyperhdr::COMP_SYSTEMGRABBER, enable); |
| 116 | emit GlobalSignals::getInstance()->SignalRequestComponent(hyperhdr::COMP_SYSTEMGRABBER, int(_hyperhdr->getInstanceIndex()), enable); |
| 117 | } |
| 118 | } |
| 119 | |
| 120 | void SystemControl::handleSettingsUpdate(settings::type type, const QJsonDocument& config) |
| 121 | { |
no test coverage detected