4 #include <lib/service/iservice.h>
6 class eStaticServiceMP3Info;
8 class eServiceFactoryMP3: public iServiceHandler
10 DECLARE_REF(eServiceFactoryMP3);
13 virtual ~eServiceFactoryMP3();
17 RESULT play(const eServiceReference &, ePtr<iPlayableService> &ptr);
18 RESULT record(const eServiceReference &, ePtr<iRecordableService> &ptr);
19 RESULT list(const eServiceReference &, ePtr<iListableService> &ptr);
20 RESULT info(const eServiceReference &, ePtr<iStaticServiceInformation> &ptr);
22 ePtr<eStaticServiceMP3Info> m_service_info;
25 class eStaticServiceMP3Info: public iStaticServiceInformation
27 DECLARE_REF(eStaticServiceMP3Info);
28 friend class eServiceFactoryMP3;
29 eStaticServiceMP3Info();
31 RESULT getName(const eServiceReference &ref, std::string &name);
34 class eServiceMP3: public iPlayableService, public iPauseableService, public iServiceInformation, public Object
36 DECLARE_REF(eServiceMP3);
38 friend class eServiceFactoryMP3;
40 eServiceMP3(const char *filename);
43 Signal2<void,iPlayableService*,int> m_event;
46 stIdle, stRunning, stStopped,
50 virtual ~eServiceMP3();
53 RESULT connectEvent(const Slot2<void,iPlayableService*,int> &event, ePtr<eConnection> &connection);
56 RESULT pause(ePtr<iPauseableService> &ptr);
62 RESULT info(ePtr<iServiceInformation>&);
64 // iServiceInformation
65 RESULT getName(std::string &name);