2 #include <libsig_comp.h>
3 #include <lib/base/ebase.h>
4 #include <lib/base/eerror.h>
5 #include <lib/base/init.h>
6 #include <lib/base/init_num.h>
8 #include <lib/dvb/dvb.h>
9 #include <lib/dvb/db.h>
10 #include <lib/dvb/isection.h>
11 #include <lib/dvb/esection.h>
12 #include <dvbsi++/program_map_section.h>
13 #include <lib/dvb/scan.h>
16 class eMain: public eApplication, public Object
22 ePtr<eDVBResourceManager> m_mgr;
23 ePtr<iDVBChannel> m_channel;
26 void scanEvent(int evt)
28 eDebug("scan event %d!", evt);
29 if (evt == eDVBScan::evtFinish)
31 m_scan->insertInto(m_dvbdb);
35 ePtr<eConnection> m_scan_event_connection;
39 m_dvbdb = new eDVBDB();
40 m_mgr = new eDVBResourceManager();
42 eDVBFrontendParametersSatellite fesat;
44 fesat.frequency = 11817000; // 12070000;
45 fesat.symbol_rate = 27500000;
46 fesat.polarisation = eDVBFrontendParametersSatellite::Polarisation_Vertical;
47 fesat.fec = eDVBFrontendParametersSatellite::FEC_3_4;
48 fesat.inversion = eDVBFrontendParametersSatellite::Inversion_Off;
49 fesat.orbital_position = 192;
51 eDVBFrontendParameters *fe = new eDVBFrontendParameters();
55 if (m_mgr->allocateRawChannel(m_channel))
56 eDebug("shit it failed!");
58 // init.setRunlevel(eAutoInitNumbers::main);
59 eDebug("starting scan...");
61 std::list<ePtr<iDVBFrontendParameters> > list;
65 m_scan = new eDVBScan(m_channel);
68 m_scan->connectEvent(slot(*this, &eMain::scanEvent), m_scan_event_connection);
74 eDebug("... nicht mehr.");
79 int object_total_remaining;
83 printf("%d items left\n", object_total_remaining);