1 #include <lib/dvb/eit.h>
2 #include <lib/dvb/specs.h>
3 #include <lib/base/eerror.h>
4 #include <lib/service/event.h>
6 void eDVBServiceEITHandler::EITready(int error)
10 ePtr<eTable<EventInformationTable> > ptr;
11 if (!m_EIT.getCurrent(ptr))
14 for (EventInformationTableConstIterator i = ptr->getSections().begin();
15 i != ptr->getSections().end(); ++i)
17 for (EventConstIterator ev = (*i)->getEvents()->begin(); ev != (*i)->getEvents()->end(); ++ev)
19 ePtr<eServiceEvent> evt = new eServiceEvent();
34 eDVBServiceEITHandler::eDVBServiceEITHandler()
36 CONNECT(m_EIT.tableReady, eDVBServiceEITHandler::EITready);
39 void eDVBServiceEITHandler::start(iDVBDemux *demux, int sid)
41 m_EIT.begin(eApp, eDVBEITSpec(sid), demux);
44 RESULT eDVBServiceEITHandler::getEvent(ePtr<eServiceEvent> &event, int nownext)
46 event = nownext ? m_event_next : m_event_now;