X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fservice%2Fservicefs.h;h=eabdd3c711e099fdb02dad671e8f35ddd4e11d81;hb=4328b788ac0ad723f1b13e144ae4ec4d3c9c4dc5;hp=7e66ba21b1c427bffddd3a9858cf992c6001ff07;hpb=ddc3964ed95d01e72229dc9af968a327cd84e56c;p=vuplus_dvbapp diff --git a/lib/service/servicefs.h b/lib/service/servicefs.h index 7e66ba2..eabdd3c 100644 --- a/lib/service/servicefs.h +++ b/lib/service/servicefs.h @@ -5,7 +5,7 @@ class eServiceFactoryFS: public iServiceHandler { -DECLARE_REF; + DECLARE_REF(eServiceFactoryFS); public: eServiceFactoryFS(); virtual ~eServiceFactoryFS(); @@ -15,19 +15,32 @@ public: RESULT play(const eServiceReference &, ePtr &ptr); 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; -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