4 #include <lib/service/iservice.h>
6 class eServiceFactoryFS: public iServiceHandler
8 DECLARE_REF(eServiceFactoryFS);
11 virtual ~eServiceFactoryFS();
15 RESULT play(const eServiceReference &, ePtr<iPlayableService> &ptr);
16 RESULT record(const eServiceReference &, ePtr<iRecordableService> &ptr);
17 RESULT list(const eServiceReference &, ePtr<iListableService> &ptr);
18 RESULT info(const eServiceReference &, ePtr<iStaticServiceInformation> &ptr);
19 RESULT offlineOperations(const eServiceReference &, ePtr<iServiceOfflineOperations> &ptr);
21 ePtr<iStaticServiceInformation> m_service_information;
24 class eServiceFS: public iListableService
26 DECLARE_REF(eServiceFS);
28 friend class eServiceFactoryFS;
29 eServiceFS(const char *path, const char *additional_extensions=0);
30 std::map<int, std::list<std::string> > m_additional_extensions;
33 std::list<eServiceReference> m_list;
34 int getServiceTypeForExtension(const char *str);
35 int getServiceTypeForExtension(const std::string &str);
37 virtual ~eServiceFS();
39 RESULT getContent(std::list<eServiceReference> &list, bool sorted=false);
40 PyObject *getContent(const char *format, bool sorted=false);
41 RESULT getNext(eServiceReference &ptr);
42 int compareLessEqual(const eServiceReference &, const eServiceReference &);
43 RESULT startEdit(ePtr<iMutableServiceList> &);