X-Git-Url: http://code.vuplus.com/gitweb/?p=vuplus_dvbapp;a=blobdiff_plain;f=lib%2Fservice%2Fservicefs.h;h=eabdd3c711e099fdb02dad671e8f35ddd4e11d81;hp=479718d867ff789d4778d8defad8947fc585d59b;hb=c437ed274b0155ecdeb7382d6ee46d67a53755b9;hpb=6dcb75c26bbfec04b381bb99d75404f9fe50635d diff --git a/lib/service/servicefs.h b/lib/service/servicefs.h index 479718d..eabdd3c 100644 --- a/lib/service/servicefs.h +++ b/lib/service/servicefs.h @@ -5,7 +5,7 @@ class eServiceFactoryFS: public iServiceHandler { -DECLARE_REF(eServiceFactoryFS); + DECLARE_REF(eServiceFactoryFS); public: eServiceFactoryFS(); virtual ~eServiceFactoryFS(); @@ -23,19 +23,20 @@ private: class eServiceFS: public iListableService { -DECLARE_REF(eServiceFS); -private: + DECLARE_REF(eServiceFS); std::string path; friend class eServiceFactoryFS; - eServiceFS(const char *path); + eServiceFS(const char *path, const char *additional_extensions=0); + std::map > m_additional_extensions; int m_list_valid; std::list m_list; + int getServiceTypeForExtension(const char *str); + int getServiceTypeForExtension(const std::string &str); public: virtual ~eServiceFS(); - + RESULT getContent(std::list &list, bool sorted=false); - RESULT getContent(SWIG_PYOBJECT(ePyObject) list, bool sorted=false); PyObject *getContent(const char *format, bool sorted=false); RESULT getNext(eServiceReference &ptr); int compareLessEqual(const eServiceReference &, const eServiceReference &);