fix
[enigma2.git] / lib / service / servicefs.h
1 #ifndef __servicefs_h
2 #define __servicefs_h
3
4 #include <lib/service/iservice.h>
5
6 class eServiceFactoryFS: public iServiceHandler
7 {
8 DECLARE_REF(eServiceFactoryFS);
9 public:
10         eServiceFactoryFS();
11         virtual ~eServiceFactoryFS();
12         enum { id = 0x2 };
13
14                 // iServiceHandler
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);
20 private:
21         ePtr<iStaticServiceInformation> m_service_information;
22 };
23
24 class eServiceFS: public iListableService
25 {
26 DECLARE_REF(eServiceFS);
27 private:
28         std::string path;
29         friend class eServiceFactoryFS;
30         eServiceFS(const char *path);
31         
32         int m_list_valid;
33         std::list<eServiceReference> m_list;
34 public:
35         virtual ~eServiceFS();
36         
37         RESULT getContent(std::list<eServiceReference> &list);
38         RESULT getNext(eServiceReference &ptr);
39         int compareLessEqual(const eServiceReference &, const eServiceReference &);
40         RESULT startEdit(ePtr<iMutableServiceList> &);
41 };
42
43 #endif