Merge branch 'midi' of https://github.com/burtsloane/hifi into midi

This commit is contained in:
Burt Sloane 2017-06-15 15:57:08 -07:00
commit 43488fe5b8
3 changed files with 0 additions and 105 deletions

View file

@ -1,29 +0,0 @@
//
// BuildInfo.h.in
// cmake/templates
//
// Created by Stephen Birarda on 1/14/16.
// Copyright 2015 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
//
#define USE_STABLE_GLOBAL_SERVICES 0
#include <QString>
namespace BuildInfo {
// WARNING: This file has been auto-generated.
// Check cmake/templates/BuildInfo.h.in if you want to modify it.
const QString INTERFACE_NAME = "Interface";
const QString ASSIGNMENT_CLIENT_NAME = "assignment-client";
const QString DOMAIN_SERVER_NAME = "domain-server";
const QString AC_CLIENT_SERVER_NAME = "ac-client";
const QString MODIFIED_ORGANIZATION = "High Fidelity - dev";
const QString ORGANIZATION_DOMAIN = "highfidelity.io";
const QString VERSION = "dev";
const QString BUILD_BRANCH = "";
const QString BUILD_GLOBAL_SERVICES = "DEVELOPMENT";
}

View file

@ -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;
}

View file

@ -1,28 +0,0 @@
//
// USBEventListener.h
// libraries/midi
//
// Created by Burt Sloane
// 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
//
#ifndef hifi_USBEventListener_h
#define hifi_USBEventListener_h
#include <QObject>
#include <QAbstractNativeEventFilter>
class USBEventListener : public QObject, public QAbstractNativeEventFilter {
Q_OBJECT
public:
static USBEventListener& getInstance();
virtual bool nativeEventFilter(const QByteArray& eventType, void* message, long* result) override;
private:
USBEventListener(QObject* parent = 0);
};
#endif // hifi_USBEventListener_h