X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fservice%2Fservicefs.h;h=eabdd3c711e099fdb02dad671e8f35ddd4e11d81;hb=d9744b561aa9958312b4a33c83dc99f52d21a6b4;hp=3400fb853752646f5110ba4e983f435d699f832c;hpb=32e4324b9b5e615a84885b9132505e4706ededfe;p=vuplus_dvbapp diff --git a/lib/service/servicefs.h b/lib/service/servicefs.h index 3400fb8..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,20 +23,24 @@ 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); + + RESULT getContent(std::list &list, bool sorted=false); + PyObject *getContent(const char *format, bool sorted=false); RESULT getNext(eServiceReference &ptr); int compareLessEqual(const eServiceReference &, const eServiceReference &); + RESULT startEdit(ePtr &); }; #endif