epgcache: add possibility to change the default epg cache read/write path
[enigma2.git] / lib / service / servicefs.h
index 390757a..eabdd3c 100644 (file)
@@ -5,7 +5,7 @@
 
 class eServiceFactoryFS: public iServiceHandler
 {
-DECLARE_REF(eServiceFactoryFS);
+       DECLARE_REF(eServiceFactoryFS);
 public:
        eServiceFactoryFS();
        virtual ~eServiceFactoryFS();
@@ -23,17 +23,19 @@ 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<int, std::list<std::string> > m_additional_extensions;
        
        int m_list_valid;
        std::list<eServiceReference> m_list;
+       int getServiceTypeForExtension(const char *str);
+       int getServiceTypeForExtension(const std::string &str);
 public:
        virtual ~eServiceFS();
-       
+
        RESULT getContent(std::list<eServiceReference> &list, bool sorted=false);
        PyObject *getContent(const char *format, bool sorted=false);
        RESULT getNext(eServiceReference &ptr);