1 #include <lib/service/event.h>
2 #include <lib/dvb_si/eit.h>
3 #include <lib/dvb_si/short_event_descriptor.h>
4 #include <lib/dvb_si/descriptor_tag.h>
6 DEFINE_REF(eServiceEvent);
8 RESULT eServiceEvent::parseFrom(Event *evt)
10 m_begin = 0; // ich bin FAUL
11 m_duration = (evt->getDuration() & 0xFF) + ((evt->getDuration() >> 8) & 0xFF) * 60 + ((evt->getDuration() >> 16) & 0xFF) * 24 * 60;
13 for (DescriptorConstIterator desc = evt->getDescriptors()->begin(); desc != evt->getDescriptors()->end(); ++desc)
15 switch ((*desc)->getTag())
17 case SHORT_EVENT_DESCRIPTOR:
19 const ShortEventDescriptor *sed = (ShortEventDescriptor*)*desc;
20 m_event_name = sed->getEventName();
21 m_description = sed->getText();
29 DEFINE_REF(eDebugClass);