]> git.tdb.fi Git - libs/core.git/blob - source/io/eventobject.cpp
Add conversion from RFC3339 string to DateTime
[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 EventObject::~EventObject()
11 { }
12
13 void EventObject::set_events(PollEvent e)
14 {
15         events = e;
16         signal_events_changed.emit(events);
17 }
18
19 void EventObject::event(PollEvent ev)
20 {
21         if(ev&P_INPUT)
22                 signal_data_available.emit();
23         if(ev&P_HANGUP)
24                 signal_end_of_file.emit();
25
26         on_event(ev);
27 }
28 } // namespace IO
29 } // namespace Msp