X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/95c570d26ce81e3dd1e0610ff6c5c0b34d75ba5a..cd883d9759844701ef57afa0cb03de7722acc5e5:/lib/service/servicedvb.h?ds=sidebyside diff --git a/lib/service/servicedvb.h b/lib/service/servicedvb.h index 5e0cf0b4..e12e3e19 100644 --- a/lib/service/servicedvb.h +++ b/lib/service/servicedvb.h @@ -44,7 +44,7 @@ public: PyObject *getContent(const char* formatstr, bool sorted=false); RESULT getContent(std::list &list, bool sorted=false); RESULT getNext(eServiceReference &ptr); - int compareLessEqual(const eServiceReference &a, const eServiceReference &b); + inline int compareLessEqual(const eServiceReference &a, const eServiceReference &b); RESULT startEdit(ePtr &); RESULT flushChanges(); @@ -63,6 +63,11 @@ private: eBouquet *m_bouquet; }; +inline int eDVBServiceList::compareLessEqual(const eServiceReference &a, const eServiceReference &b) +{ + return m_query->compareLessEqual((const eServiceReferenceDVB&)a, (const eServiceReferenceDVB&)b); +} + class eDVBServiceBase: public iFrontendInformation { protected: @@ -151,11 +156,11 @@ public: // iCueSheet PyObject *getCutList(); - void setCutList(PyObject *); + void setCutList(SWIG_PYOBJECT(ePyObject)); void setCutListEnable(int enable); // iSubtitleOutput - RESULT enableSubtitles(eWidget *parent, PyObject *entry); + RESULT enableSubtitles(eWidget *parent, SWIG_PYOBJECT(ePyObject) entry); RESULT disableSubtitles(eWidget *parent); PyObject *getSubtitleList(); PyObject *getCachedSubtitle(); @@ -263,4 +268,15 @@ private: void radioTextUpdated(); }; +class eStaticServiceDVBBouquetInformation: public iStaticServiceInformation +{ + DECLARE_REF(eStaticServiceDVBBouquetInformation); + eServiceReference m_playable_service; +public: + eServiceReference &getPlayableService() { return m_playable_service; } + RESULT getName(const eServiceReference &ref, std::string &name); + int getLength(const eServiceReference &ref); + int isPlayable(const eServiceReference &ref, const eServiceReference &ignore); +}; + #endif