Move the event system into common to be used by our threads

This commit is contained in:
Micke Prag 2012-02-03 14:51:39 +01:00
parent 189ddc9383
commit 938187b2a6
9 changed files with 9 additions and 9 deletions

View file

@ -0,0 +1,26 @@
#include "Event.h"
#include "EventHandler.h"
#include "Thread.h"
class Event::PrivateData {
public:
};
Event::Event(EventHandler *handler)
:EventBase(handler){
d = new PrivateData;
}
Event::~Event(void) {
delete d;
}
void Event::clearSignal() {
}
void Event::sendSignal() {
EventHandler *handler = this->handler();
if (handler) {
handler->signal(this);
}
}