Move the event system into common to be used by our threads
This commit is contained in:
parent
189ddc9383
commit
938187b2a6
9 changed files with 9 additions and 9 deletions
26
telldus-core/common/Event_unix.cpp
Normal file
26
telldus-core/common/Event_unix.cpp
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue