X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/4bc08995411e21f3564f09e136809be68ddf96a8..14ae9c7897eaefad5caa0cecda762b0a8a9e9d72:/lib/service/servicemp3.h diff --git a/lib/service/servicemp3.h b/lib/service/servicemp3.h index 7ef84025..bf18e92b 100644 --- a/lib/service/servicemp3.h +++ b/lib/service/servicemp3.h @@ -3,11 +3,11 @@ #include -class eServiceMP3Info ; +class eStaticServiceMP3Info; class eServiceFactoryMP3: public iServiceHandler { -DECLARE_REF; +DECLARE_REF(eServiceFactoryMP3); public: eServiceFactoryMP3(); virtual ~eServiceFactoryMP3(); @@ -17,23 +17,25 @@ public: RESULT play(const eServiceReference &, ePtr &ptr); RESULT record(const eServiceReference &, ePtr &ptr); RESULT list(const eServiceReference &, ePtr &ptr); - RESULT info(const eServiceReference &, ePtr &ptr); + RESULT info(const eServiceReference &, ePtr &ptr); + RESULT offlineOperations(const eServiceReference &, ePtr &ptr); private: - ePtr m_service_info; + ePtr m_service_info; }; -class eServiceMP3Info: public iServiceInformation +class eStaticServiceMP3Info: public iStaticServiceInformation { - DECLARE_REF; + DECLARE_REF(eStaticServiceMP3Info); friend class eServiceFactoryMP3; - eServiceMP3Info(); + 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; @@ -53,16 +55,18 @@ public: RESULT connectEvent(const Slot2 &event, ePtr &connection); RESULT start(); RESULT stop(); - RESULT getIPausableService(ePtr &ptr); + RESULT pause(ePtr &ptr); + RESULT seek(ePtr &ptr); + RESULT audioTracks(ePtr &ptr); // iPausableService RESULT pause(); RESULT unpause(); - RESULT getIServiceInformation(ePtr&); + RESULT info(ePtr&); // iServiceInformation - RESULT getName(const eServiceReference &ref, std::string &name); + RESULT getName(std::string &name); }; #endif