- add more python stuff
[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;
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 };
19
20 class eServiceFS: public iListableService
21 {
22 DECLARE_REF;
23 private:
24         std::string path;
25         friend class eServiceFactoryFS;
26         eServiceFS(const char *path);
27 public:
28         virtual ~eServiceFS();
29         
30         RESULT getContent(std::list<eServiceReference> &list);
31 };
32
33 #endif