]> git.tdb.fi Git - libs/core.git/blob - source/io/eventobject.cpp
Mark overridden virtual functions as such
[libs/core.git] / source / io / eventobject.cpp
1 #include "eventobject.h"
2
3 namespace Msp {
4 namespace IO {
5
6 EventObject::EventObject()
7 { }
8
9 EventObject::~EventObject()
10 { }
11
12 void EventObject::set_events(PollEvent e)
13 {
14         _events = e;
15         signal_events_changed.emit(_events);
16 }
17
18 void EventObject::event(PollEvent ev)
19 {
20         if(ev&P_INPUT)
21                 signal_data_available.emit();
22         if(ev&P_HANGUP)
23                 signal_end_of_file.emit();
24
25         on_event(ev);
26 }
27 } // namespace IO
28 } // namespace Msp