MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / slotCaptureAllKeyboard

Method slotCaptureAllKeyboard

Src/Manager.cpp:691–706  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

689}
690
691void CManager::slotCaptureAllKeyboard()
692{
693 Q_ASSERT(m_pParameterPlugin);
694 if(m_pParameterPlugin->GetCaptureAllKeyboard()) {
695 if(m_pHook) return;
696 m_pHook = CHook::GetHook(m_pParameterPlugin, this);
697 if(m_pHook)
698 m_pHook->RegisterKeyboard();
699 } else {
700 if(m_pHook) {
701 m_pHook->UnRegisterKeyboard();
702 m_pHook->deleteLater();
703 m_pHook = nullptr;
704 }
705 }
706}

Callers

nothing calls this directly

Calls 3

GetCaptureAllKeyboardMethod · 0.80
RegisterKeyboardMethod · 0.45
UnRegisterKeyboardMethod · 0.45

Tested by

no test coverage detected