]> git.tdb.fi Git - libs/core.git/blob - source/io/eventobject.cpp
Update .gitignore
[libs/core.git] / source / io / eventobject.cpp
1 #include "eventobject.h"
2
3 namespace Msp {
4 namespace IO {
5
6 EventObject::EventObject():
7         events(P_NONE)
8 { }
9
10 void EventObject::set_events(PollEvent e)
11 {
12         events = e;
13         signal_events_changed.emit(events);
14 }
15
16 void EventObject::event(PollEvent ev)
17 {
18         if(ev&P_INPUT)
19                 signal_data_available.emit();
20
21         on_event(ev);
22 }
23 } // namespace IO
24 } // namespace Msp