| 415 | } |
| 416 | |
| 417 | void Interception_Worker::stopInterception() |
| 418 | { |
| 419 | s_InterceptStart = false; |
| 420 | QKeyMapper_Worker::pressedMultiKeyboardVKeyCodeList.clear(); |
| 421 | for (int i = 0; i < INTERCEPTION_MAX_KEYBOARD; ++i) { |
| 422 | QKeyMapper_Worker::pressedMultiKeyboardVKeyCodeList.append(QList<quint8>()); |
| 423 | } |
| 424 | |
| 425 | if (s_InterceptionContext == Q_NULLPTR) { |
| 426 | return; |
| 427 | } |
| 428 | |
| 429 | interception_set_filter(s_InterceptionContext, interception_is_keyboard, INTERCEPTION_FILTER_KEY_NONE); |
| 430 | interception_set_filter(s_InterceptionContext, interception_is_mouse, INTERCEPTION_FILTER_MOUSE_NONE); |
| 431 | |
| 432 | #ifdef DEBUG_LOGOUT_ON |
| 433 | qDebug().nospace() << "[stopInterception] Stop Keyboard & Mouse Interception."; |
| 434 | #endif |
| 435 | } |
| 436 | |
| 437 | bool Interception_Worker::getUSBDeviceDescriptor(ushort vendor_id, ushort product_id, QString &iManufacturer, QString &iProduct) |
| 438 | { |