just one bouquet (favourites)
[enigma2.git] / lib / service / servicemp3.h
index 40287ae53d3fbb9f1a2d99bdbcf068b1e0b33e00..ac174c4121449c5ed90240137308c1761f83c9ef 100644 (file)
@@ -7,7 +7,7 @@ class eStaticServiceMP3Info;
 
 class eServiceFactoryMP3: public iServiceHandler
 {
-DECLARE_REF;
+DECLARE_REF(eServiceFactoryMP3);
 public:
        eServiceFactoryMP3();
        virtual ~eServiceFactoryMP3();
@@ -18,22 +18,24 @@ public:
        RESULT record(const eServiceReference &, ePtr<iRecordableService> &ptr);
        RESULT list(const eServiceReference &, ePtr<iListableService> &ptr);
        RESULT info(const eServiceReference &, ePtr<iStaticServiceInformation> &ptr);
+       RESULT offlineOperations(const eServiceReference &, ePtr<iServiceOfflineOperations> &ptr);
 private:
        ePtr<eStaticServiceMP3Info> m_service_info;
 };
 
-class eStaticServiceMP3Info: public iServiceInformation
+class eStaticServiceMP3Info: public iStaticServiceInformation
 {
-       DECLARE_REF;
+       DECLARE_REF(eStaticServiceMP3Info);
        friend class eServiceFactoryMP3;
        eStaticServiceMP3Info();
 public:
        RESULT getName(const eServiceReference &ref, std::string &name);
+       int getLength(const eServiceReference &ref);
 };
 
 class eServiceMP3: public iPlayableService, public iPauseableService, public iServiceInformation, public Object
 {
-DECLARE_REF;
+DECLARE_REF(eServiceMP3);
 private:
        friend class eServiceFactoryMP3;
        std::string filename;
@@ -54,6 +56,14 @@ public:
        RESULT start();
        RESULT stop();
        RESULT pause(ePtr<iPauseableService> &ptr);
+       RESULT setSlowMotion(int ratio);
+       RESULT setFastForward(int ratio);
+
+               // not implemented (yet)
+       RESULT seek(ePtr<iSeekableService> &ptr) { ptr = 0; return -1; }
+       RESULT audioTracks(ePtr<iAudioTrackSelection> &ptr) { ptr = 0; return -1; }
+       RESULT frontendStatusInfo(ePtr<iFrontendStatusInformation> &ptr) { ptr = 0; return -1; }
+       RESULT subServices(ePtr<iSubserviceList> &ptr) { ptr = 0; return -1; }
 
                // iPausableService
        RESULT pause();
@@ -62,7 +72,7 @@ public:
        RESULT info(ePtr<iServiceInformation>&);
        
                // iServiceInformation
-       RESULT getName(const eServiceReference &ref, std::string &name);
+       RESULT getName(std::string &name);
 };
 
 #endif