MCPcopy Create free account
hub / github.com/Zalafina/QKeyMapper / getInterceptionState

Method getInterceptionState

QKeyMapper/interception_worker.cpp:367–384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

365}
366
367Interception_Worker::Interception_State Interception_Worker::getInterceptionState()
368{
369 if (s_RebootRequired) {
370 return INTERCEPTION_REBOOTREQUIRED;
371 }
372
373 if (s_InterceptionContext != Q_NULLPTR) {
374 return INTERCEPTION_AVAILABLE;
375 }
376 else {
377 if (isInterceptionDriverFileExist()) {
378 return INTERCEPTION_REBOOTREQUIRED;
379 }
380 else {
381 return INTERCEPTION_UNAVAILABLE;
382 }
383 }
384}
385
386void Interception_Worker::setRebootRequiredFlag()
387{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected