X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fdvb%2Fdb.h;h=0947b34560894244a6512618cdcdd27e7f656cab;hb=90293e90301f5ef5c224fd08b8cd229982e2f597;hp=bf39df18c2b755af8e140e77145b783c61a447aa;hpb=06469e38dc7f21a2587efc181f47fa219efa8e5f;p=vuplus_dvbapp diff --git a/lib/dvb/db.h b/lib/dvb/db.h index bf39df1..0947b34 100644 --- a/lib/dvb/db.h +++ b/lib/dvb/db.h @@ -2,8 +2,8 @@ #define __db_h #ifndef SWIG -#include #include +#include #include class ServiceDescriptionSection; #endif @@ -17,7 +17,6 @@ DECLARE_REF(eDVBDB); friend class eDVBDBSatellitesQuery; friend class eDVBDBProvidersQuery; - struct channel { ePtr m_frontendParameters; @@ -33,8 +32,19 @@ DECLARE_REF(eDVBDB); ~eDVBDB(); #endif public: -#ifndef SWIG // iDVBChannelList + RESULT removeFlags(unsigned int flagmask, int dvb_namespace=-1, int tsid=-1, int onid=-1, unsigned int orb_pos=0xFFFFFFFF); + RESULT removeServices(int dvb_namespace=-1, int tsid=-1, int onid=-1, unsigned int orb_pos=0xFFFFFFFF); + 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 addChannelToList(const eDVBChannelID &id, iDVBFrontendParameters *feparm); RESULT removeChannel(const eDVBChannelID &id); @@ -48,13 +58,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(); };