| 19 | QStringList Interception_Worker::disabledMouseList; |
| 20 | |
| 21 | Interception_Worker::Interception_Worker(QObject *parent) : |
| 22 | QObject{parent} |
| 23 | { |
| 24 | if (doLoadInterception()) { |
| 25 | int result = libusb_init_context(NULL, NULL, 0); |
| 26 | if (result < 0) { |
| 27 | #ifdef DEBUG_LOGOUT_ON |
| 28 | qDebug("[Interception_Worker] Failed to initialise libusb %d - %s", result, libusb_strerror(result)); |
| 29 | #endif |
| 30 | s_libusb_available = false; |
| 31 | } |
| 32 | else { |
| 33 | #ifdef DEBUG_LOGOUT_ON |
| 34 | qDebug("[Interception_Worker] Success to initialise libusb : %d", result); |
| 35 | #endif |
| 36 | s_libusb_available = true; |
| 37 | } |
| 38 | |
| 39 | s_USBIDsMap = parseUSBIDs(USBIDS_QRC); |
| 40 | |
| 41 | /* Must do KeyboardDeviceList & MouseDeviceList Initialize before Interception Start */ |
| 42 | (void)getRefreshedKeyboardDeviceList(); |
| 43 | (void)getRefreshedMouseDeviceList(); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | Interception_Worker::~Interception_Worker() |
| 48 | { |
nothing calls this directly
no outgoing calls
no test coverage detected