speedups
[enigma2.git] / lib / service / servicedvb.h
index 8026d6558bb1a9f84188afd7ccb4308daa2eb834..b2306e10b1ac671e9d85b83f32169297b037bc09 100644 (file)
@@ -7,11 +7,17 @@
 #include <lib/dvb/pmt.h>
 #include <lib/dvb/eit.h>
 #include <lib/dvb/teletext.h>
+#include <lib/dvb/radiotext.h>
 #include <lib/base/filepush.h>
 
+class eStaticServiceDVBInformation;
+class eStaticServiceDVBBouquetInformation;
+
 class eServiceFactoryDVB: public iServiceHandler
 {
-DECLARE_REF(eServiceFactoryDVB);
+       DECLARE_REF(eServiceFactoryDVB);
+       ePtr<eStaticServiceDVBInformation> m_StaticServiceDVBInfo;
+       ePtr<eStaticServiceDVBBouquetInformation> m_StaticServiceDVBBouquetInfo;
 public:
        eServiceFactoryDVB();
        virtual ~eServiceFactoryDVB();
@@ -41,7 +47,7 @@ public:
        
        RESULT startEdit(ePtr<iMutableServiceList> &);
        RESULT flushChanges();
-       RESULT addService(eServiceReference &ref);
+       RESULT addService(eServiceReference &ref, eServiceReference before);
        RESULT removeService(eServiceReference &ref);
        RESULT moveService(eServiceReference &ref, int pos);
        RESULT setListName(const std::string &name);
@@ -59,7 +65,7 @@ private:
 class eDVBServiceBase: public iFrontendInformation
 {
 protected:
-       eDVBServicePMTHandler m_service_handler;
+       eDVBServicePMTHandler m_service_handler ;
 public:
                // iFrontendInformation
        int getFrontendInfo(int w);
@@ -73,7 +79,8 @@ class eDVBServicePlay: public eDVBServiceBase,
                public iSeekableService, public Object, public iServiceInformation, 
                public iAudioTrackSelection, public iAudioChannelSelection,
                public iSubserviceList, public iTimeshiftService,
-               public iCueSheet, public iSubtitleOutput, public iAudioDelay
+               public iCueSheet, public iSubtitleOutput, public iAudioDelay,
+               public iRadioText
 {
 DECLARE_REF(eDVBServicePlay);
 public:
@@ -95,7 +102,8 @@ public:
        RESULT timeshift(ePtr<iTimeshiftService> &ptr);
        RESULT cueSheet(ePtr<iCueSheet> &ptr);
        RESULT subtitle(ePtr<iSubtitleOutput> &ptr);
-       RESULT audioDelay(ePtr<iAudioDelay> &ptr);      
+       RESULT audioDelay(ePtr<iAudioDelay> &ptr);
+       RESULT radioText(ePtr<iRadioText> &ptr);
 
                // iPauseableService
        RESULT pause();
@@ -127,6 +135,9 @@ public:
        int getCurrentChannel();
        RESULT selectChannel(int i);
 
+               // iRadioText
+       std::string getRadioText(int i=0);
+
                // iSubserviceList
        int getNumberOfSubservices();
        RESULT getSubservice(eServiceReference &subservice, unsigned int n);
@@ -232,11 +243,16 @@ private:
        ePtr<eConnection> m_new_subtitle_page_connection;
        
        ePtr<eDVBTeletextParser> m_teletext_parser;
+       ePtr<eDVBRadioTextParser> m_radiotext_parser;
        eSubtitleWidget *m_subtitle_widget;
        eTimer m_subtitle_sync_timer;
        std::list<eDVBTeletextSubtitlePage> m_subtitle_pages;
        
        void checkSubtitleTiming();
+
+               /* radiotext */
+       ePtr<eConnection> m_radiotext_updated_connection;
+       void radioTextUpdated();
 };
 
 #endif