X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fservice%2Fservicefs.h;h=eabdd3c711e099fdb02dad671e8f35ddd4e11d81;hb=1b6d1b727225a521afeb14149a662846c015e46f;hp=61fcb4a96de3c5ee05f8f0b2f68d429426b6f6da;hpb=dba614edd2aad3c17e244914eaef3809d8300cb1;p=vuplus_dvbapp diff --git a/lib/service/servicefs.h b/lib/service/servicefs.h index 61fcb4a..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(); @@ -16,21 +16,31 @@ public: RESULT record(const eServiceReference &, ePtr &ptr); RESULT list(const eServiceReference &, ePtr &ptr); RESULT info(const eServiceReference &, ePtr &ptr); + RESULT offlineOperations(const eServiceReference &, ePtr &ptr); private: ePtr m_service_information; }; 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