X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/d9ee52e4f0fbe9a1ae00d0e66f9e6f0a07fa319f..89b8546abecd391992fbe7ba06cbeea6310b07a1:/lib/service/servicemp3.h diff --git a/lib/service/servicemp3.h b/lib/service/servicemp3.h index 40287ae5..ac174c41 100644 --- a/lib/service/servicemp3.h +++ b/lib/service/servicemp3.h @@ -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 &ptr); RESULT list(const eServiceReference &, ePtr &ptr); RESULT info(const eServiceReference &, ePtr &ptr); + RESULT offlineOperations(const eServiceReference &, ePtr &ptr); private: ePtr 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 &ptr); + RESULT setSlowMotion(int ratio); + RESULT setFastForward(int ratio); + + // not implemented (yet) + RESULT seek(ePtr &ptr) { ptr = 0; return -1; } + RESULT audioTracks(ePtr &ptr) { ptr = 0; return -1; } + RESULT frontendStatusInfo(ePtr &ptr) { ptr = 0; return -1; } + RESULT subServices(ePtr &ptr) { ptr = 0; return -1; } // iPausableService RESULT pause(); @@ -62,7 +72,7 @@ public: RESULT info(ePtr&); // iServiceInformation - RESULT getName(const eServiceReference &ref, std::string &name); + RESULT getName(std::string &name); }; #endif