python object refcount debugging code second try
[vuplus_dvbapp] / 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, bool sorted=false);
38         RESULT getContent(SWIG_PYOBJECT(ePyObject) list, bool sorted=false);
39         PyObject *getContent(const char *format, bool sorted=false);
40         RESULT getNext(eServiceReference &ptr);
41         int compareLessEqual(const eServiceReference &, const eServiceReference &);
42         RESULT startEdit(ePtr<iMutableServiceList> &);
43 };
44
45 #endif