dont try to get frontend informations when the eDVBServicePlay is a pvr service
[enigma2.git] / lib / service / servicedvb.h
index 165703dd07e57168f4a43215cfe5ccc9abe61de9..4b6ef3e14b724ff46701fa97ce902232f3be9162 100644 (file)
@@ -37,6 +37,7 @@ public:
        int compareLessEqual(const eServiceReference &a, const eServiceReference &b);
        
        RESULT startEdit(ePtr<iMutableServiceList> &);
+       RESULT flushChanges();
        RESULT addService(eServiceReference &ref);
        RESULT removeService(eServiceReference &ref);
        RESULT moveService(eServiceReference &ref, int pos);
@@ -51,7 +52,9 @@ private:
        eBouquet *m_bouquet;
 };
 
-class eDVBServicePlay: public iPlayableService, public iPauseableService, public iSeekableService, public Object, public iServiceInformation
+class eDVBServicePlay: public iPlayableService, public iPauseableService, 
+               public iSeekableService, public Object, public iServiceInformation, 
+               public iAudioTrackSelection, public iFrontendStatusInformation
 {
 DECLARE_REF(eDVBServicePlay);
 public:
@@ -64,6 +67,8 @@ public:
        RESULT seek(ePtr<iSeekableService> &ptr);
        RESULT pause(ePtr<iPauseableService> &ptr);
        RESULT info(ePtr<iServiceInformation> &ptr);
+       RESULT audioTracks(ePtr<iAudioTrackSelection> &ptr);
+       RESULT frontendStatusInfo(ePtr<iFrontendStatusInformation> &ptr);
        
                // iPauseableService
        RESULT pause();
@@ -78,6 +83,16 @@ public:
                // iServiceInformation
        RESULT getName(std::string &name);
        RESULT getEvent(ePtr<eServiceEvent> &evt, int nownext);
+       int getInfo(int w);
+       std::string getInfoString(int w);
+
+               // iAudioTrackSelection 
+       int getNumberOfTracks();
+       RESULT selectTrack(unsigned int i);
+       RESULT getTrackInfo(struct iAudioTrackInfo &, unsigned int n);
+
+               // iFrontendStatusInformation
+       int getFrontendInfo(int w);
 
 private:
        friend class eServiceFactoryDVB;
@@ -98,6 +113,9 @@ private:
        Signal2<void,iPlayableService*,int> m_event;
        
        int m_is_pvr, m_is_paused;
+       
+       int m_current_audio_stream;
+       int selectAudioStream(int n);
 };
 
 #endif