mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:37:51 +02:00
removed some accidentally added code
This commit is contained in:
parent
f16a48e187
commit
ea22073ddc
2 changed files with 0 additions and 130 deletions
|
@ -1,83 +0,0 @@
|
||||||
//
|
|
||||||
// DebuggingEventDispatcher.cpp
|
|
||||||
// shared
|
|
||||||
//
|
|
||||||
// Created by Brad Hefta-Gaub on 4/1/14
|
|
||||||
// Copyright (c) 2014 High Fidelity, Inc. All rights reserved.
|
|
||||||
//
|
|
||||||
//
|
|
||||||
|
|
||||||
#include <QThread>
|
|
||||||
|
|
||||||
#include "DebuggingEventDispatcher.h"
|
|
||||||
|
|
||||||
DebuggingEventDispatcher::DebuggingEventDispatcher(QThread* thread) {
|
|
||||||
_realEventDispatcher = thread->eventDispatcher();
|
|
||||||
thread->setEventDispatcher(this);
|
|
||||||
}
|
|
||||||
|
|
||||||
void DebuggingEventDispatcher::flush() {
|
|
||||||
_realEventDispatcher->flush();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool DebuggingEventDispatcher::hasPendingEvents() {
|
|
||||||
return _realEventDispatcher->hasPendingEvents();
|
|
||||||
}
|
|
||||||
|
|
||||||
void DebuggingEventDispatcher::interrupt() {
|
|
||||||
_realEventDispatcher->interrupt();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool DebuggingEventDispatcher::processEvents(QEventLoop::ProcessEventsFlags flags) {
|
|
||||||
return _realEventDispatcher->processEvents(flags);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
bool DebuggingEventDispatcher::registerEventNotifier(QWinEventNotifier* notifier) {
|
|
||||||
return _realEventDispatcher->registerEventNotifier(notifier);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
void DebuggingEventDispatcher::registerSocketNotifier(QSocketNotifier* notifier) {
|
|
||||||
_realEventDispatcher->registerSocketNotifier(notifier);
|
|
||||||
}
|
|
||||||
|
|
||||||
void DebuggingEventDispatcher::registerTimer(int timerId, int interval, Qt::TimerType timerType, QObject* object) {
|
|
||||||
_realEventDispatcher->registerTimer(timerId, interval, timerType, object);
|
|
||||||
}
|
|
||||||
|
|
||||||
QList<DebuggingEventDispatcher::TimerInfo> DebuggingEventDispatcher::registeredTimers(QObject* object) const {
|
|
||||||
return _realEventDispatcher->registeredTimers(object);
|
|
||||||
}
|
|
||||||
|
|
||||||
int DebuggingEventDispatcher::remainingTime(int timerId) {
|
|
||||||
return _realEventDispatcher->remainingTime(timerId);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
void DebuggingEventDispatcher::unregisterEventNotifier(QWinEventNotifier* notifier) {
|
|
||||||
_realEventDispatcher->unregisterEventNotifier(notifier);
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
void DebuggingEventDispatcher::unregisterSocketNotifier(QSocketNotifier* notifier) {
|
|
||||||
_realEventDispatcher->unregisterSocketNotifier(notifier);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool DebuggingEventDispatcher::unregisterTimer(int timerId) {
|
|
||||||
return _realEventDispatcher->unregisterTimer(timerId);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool DebuggingEventDispatcher::unregisterTimers(QObject* object) {
|
|
||||||
return _realEventDispatcher->unregisterTimers(object);
|
|
||||||
}
|
|
||||||
|
|
||||||
void DebuggingEventDispatcher::wakeUp() {
|
|
||||||
_realEventDispatcher->wakeUp();
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
void installNativeEventFilter(QAbstractNativeEventFilter* filterObj);
|
|
||||||
int registerTimer(int interval, Qt::TimerType timerType, QObject* object);
|
|
||||||
void removeNativeEventFilter(QAbstractNativeEventFilter* filter);
|
|
||||||
*/
|
|
|
@ -1,47 +0,0 @@
|
||||||
//
|
|
||||||
// DebuggingEventDispatcher.h
|
|
||||||
// shared
|
|
||||||
//
|
|
||||||
// Created by Brad Hefta-Gaub on 4/1/14
|
|
||||||
// Copyright (c) 2014 High Fidelity, Inc. All rights reserved.
|
|
||||||
//
|
|
||||||
//
|
|
||||||
|
|
||||||
#ifndef __shared__DebuggingEventDispatcher__
|
|
||||||
#define __shared__DebuggingEventDispatcher__
|
|
||||||
|
|
||||||
#include <QAbstractEventDispatcher>
|
|
||||||
#include <QSocketNotifier>
|
|
||||||
#include <QWinEventNotifier>
|
|
||||||
//#include <TimerInfo>
|
|
||||||
|
|
||||||
class DebuggingEventDispatcher : public QAbstractEventDispatcher {
|
|
||||||
Q_OBJECT
|
|
||||||
public:
|
|
||||||
DebuggingEventDispatcher(QThread* thread);
|
|
||||||
virtual void flush();
|
|
||||||
virtual bool hasPendingEvents();
|
|
||||||
void installNativeEventFilter(QAbstractNativeEventFilter* filterObj);
|
|
||||||
virtual void interrupt();
|
|
||||||
virtual bool processEvents(QEventLoop::ProcessEventsFlags flags);
|
|
||||||
//virtual bool registerEventNotifier(QWinEventNotifier* notifier);
|
|
||||||
virtual void registerSocketNotifier(QSocketNotifier* notifier);
|
|
||||||
int registerTimer(int interval, Qt::TimerType timerType, QObject* object);
|
|
||||||
virtual void registerTimer(int timerId, int interval, Qt::TimerType timerType, QObject* object);
|
|
||||||
virtual QList<TimerInfo> registeredTimers(QObject* object) const;
|
|
||||||
virtual int remainingTime(int timerId);
|
|
||||||
void removeNativeEventFilter(QAbstractNativeEventFilter* filter);
|
|
||||||
//virtual void unregisterEventNotifier(QWinEventNotifier* notifier);
|
|
||||||
virtual void unregisterSocketNotifier(QSocketNotifier* notifier);
|
|
||||||
virtual bool unregisterTimer(int timerId);
|
|
||||||
virtual bool unregisterTimers(QObject* object);
|
|
||||||
virtual void wakeUp();
|
|
||||||
|
|
||||||
signals:
|
|
||||||
void aboutToBlock();
|
|
||||||
void awake();
|
|
||||||
private:
|
|
||||||
QAbstractEventDispatcher* _realEventDispatcher;
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif // __shared__DebuggingEventDispatcher__
|
|
Loading…
Reference in a new issue