| 895 | } |
| 896 | |
| 897 | void Interception_Worker::updateDisabledMouseList(const QString &disabled_device, bool disabled) |
| 898 | { |
| 899 | if (disabled) { |
| 900 | if (!disabledMouseList.contains(disabled_device)) { |
| 901 | disabledMouseList.append(disabled_device); |
| 902 | #ifdef DEBUG_LOGOUT_ON |
| 903 | qDebug().nospace() << "[updateDisabledMouseList]" << " Add disabled Mouse -> " << disabled_device; |
| 904 | #endif |
| 905 | } |
| 906 | } |
| 907 | else { |
| 908 | if (disabledMouseList.contains(disabled_device)) { |
| 909 | disabledMouseList.removeAll(disabled_device); |
| 910 | #ifdef DEBUG_LOGOUT_ON |
| 911 | qDebug().nospace() << "[updateDisabledMouseList]" << " Remove disabled Mouse -> " << disabled_device; |
| 912 | #endif |
| 913 | } |
| 914 | } |
| 915 | } |
| 916 | |
| 917 | void Interception_Worker::syncDisabledKeyboardList() |
| 918 | { |