mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 03:53:52 +02:00
Delete USBEventListener.cpp
This commit is contained in:
parent
19e35e1cd0
commit
2358d51ef1
1 changed files with 0 additions and 48 deletions
|
@ -1,48 +0,0 @@
|
|||
//
|
||||
// USBEventListener.cpp
|
||||
// libraries/shared/src
|
||||
//
|
||||
// Created by Ryan Huffman on 09/03/14.
|
||||
// Copyright 2014 High Fidelity, Inc.
|
||||
//
|
||||
// Distributed under the Apache License, Version 2.0.
|
||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
|
||||
#include "USBEventListener.h"
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
#include <Windows.h>
|
||||
#else
|
||||
#include <csignal>
|
||||
#endif
|
||||
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtCore/QDebug>
|
||||
|
||||
USBEventListener& USBEventListener::getInstance() {
|
||||
static USBEventListener staticInstance;
|
||||
return staticInstance;
|
||||
}
|
||||
|
||||
void signalHandler(int param) {
|
||||
// tell the qApp it should quit
|
||||
QMetaObject::invokeMethod(qApp, "quit");
|
||||
}
|
||||
|
||||
USBEventListener::USBEventListener(QObject* parent) : QObject(parent) {
|
||||
#ifndef Q_OS_WIN
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
bool USBEventListener::nativeEventFilter(const QByteArray &eventType, void* msg, long* result) {
|
||||
#ifdef Q_OS_WIN
|
||||
if (eventType == "windows_generic_MSG") {
|
||||
MSG* message = (MSG*)msg;
|
||||
if (message->message == WM_DEVICECHANGE) {
|
||||
}
|
||||
}
|
||||
#endif
|
||||
return false;
|
||||
}
|
Loading…
Reference in a new issue