X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/ed40f6f85c9c07c3c1224ae20601082c0309a631..37b38cb05fc6bc4993f852a78bdba93c7627cf5b:/lib/dvb/db.h diff --git a/lib/dvb/db.h b/lib/dvb/db.h index 34ecfc14..55e008fb 100644 --- a/lib/dvb/db.h +++ b/lib/dvb/db.h @@ -10,8 +10,8 @@ class ServiceDescriptionSection; class eDVBDB: public iDVBChannelList { + DECLARE_REF(eDVBDB); static eDVBDB *instance; -DECLARE_REF(eDVBDB); friend class eDVBDBQuery; friend class eDVBDBBouquetQuery; friend class eDVBDBSatellitesQuery; @@ -38,9 +38,13 @@ public: RESULT removeService(const eServiceReference &service); RESULT addFlag(const eServiceReference &service, unsigned int flagmask); RESULT removeFlag(const eServiceReference &service, unsigned int flagmask); + PyObject *readSatellites(SWIG_PYOBJECT(ePyObject) sat_list, SWIG_PYOBJECT(ePyObject) sat_dict, SWIG_PYOBJECT(ePyObject) tp_dict); + PyObject *readTerrestrials(SWIG_PYOBJECT(ePyObject) ter_list, SWIG_PYOBJECT(ePyObject) tp_dict); + PyObject *readCables(SWIG_PYOBJECT(ePyObject) cab_list, SWIG_PYOBJECT(ePyObject) tp_dict); #ifndef SWIG RESULT removeFlags(unsigned int flagmask, eDVBChannelID chid, unsigned int orb_pos); RESULT removeServices(eDVBChannelID chid, unsigned int orb_pos); + RESULT removeServices(iDVBFrontendParameters *feparm); RESULT addChannelToList(const eDVBChannelID &id, iDVBFrontendParameters *feparm); RESULT removeChannel(const eDVBChannelID &id); @@ -55,14 +59,16 @@ public: RESULT getBouquet(const eServiceReference &ref, eBouquet* &bouquet); ////// - void saveServicelist(); void loadBouquet(const char *path); eServiceReference searchReference(int tsid, int onid, int sid); eDVBDB(); virtual ~eDVBDB(); #endif + void loadServicelist(const char *filename); static eDVBDB *getInstance() { return instance; } void reloadServicelist(); + void saveServicelist(); + void saveServicelist(const char *file); void reloadBouquets(); }; @@ -70,7 +76,7 @@ public: // we have to add a possibility to invalidate here. class eDVBDBQueryBase: public iDVBChannelListQuery { -DECLARE_REF(eDVBDBQueryBase); + DECLARE_REF(eDVBDBQueryBase); protected: ePtr m_db; ePtr m_query;