4 #include <lib/service/iservice.h>
6 class eServiceMP3Info ;
8 class eServiceFactoryMP3: public iServiceHandler
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<iServiceInformation> &ptr);
22 ePtr<eServiceMP3Info> m_service_info;
25 class eServiceMP3Info: public iServiceInformation
28 friend class eServiceFactoryMP3;
31 RESULT getName(const eServiceReference &ref, std::string &name);
34 class eServiceMP3: public iPlayableService, public iPauseableService, public iServiceInformation, public Object
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 getIPausableService(ePtr<iPauseableService> &ptr);
62 RESULT getIServiceInformation(ePtr<iServiceInformation>&);
64 // iServiceInformation
65 RESULT getName(const eServiceReference &ref, std::string &name);