add GetText for showing config entries, update summary values when changed
[enigma2.git] / lib / network / http_file.h
index 88bffc606f216e587295bac2a183dde48d3a2490..a9c86c5c907230ba9fb158c5fcb4f54ec81c0b88 100644 (file)
@@ -5,6 +5,8 @@
 
 class eHTTPFile: public eHTTPDataSource
 {
+       DECLARE_REF(eHTTPFile);
+private:       
        int fd, size;
        const char *mime;
        int method;
@@ -16,22 +18,24 @@ public:
        void haveData(void *data, int len);
 };
 
-class eHTTPFilePathResolver: public eHTTPPathResolver
+class eHTTPFilePathResolver: public iHTTPPathResolver
 {
+       DECLARE_REF(eHTTPFilePathResolver);
+public:
        struct eHTTPFilePath
        {
-               eString path;
-               eString root;
+               std::string path;
+               std::string root;
                int authorized; // must be authorized (1 means read, 2 write)
-               eHTTPFilePath(eString path, eString root, int authorized): path(path), root(root), authorized(authorized)
+               eHTTPFilePath(std::string path, std::string root, int authorized): path(path), root(root), authorized(authorized)
                {
                }
        };
        ePtrList<eHTTPFilePath> translate;
 public:
        eHTTPFilePathResolver();
-       eHTTPDataSource *getDataSource(eString request, eString path, eHTTPConnection *conn);
-       void addTranslation(eString path, eString root, int auth);
+       RESULT getDataSource(eHTTPDataSourcePtr &ptr, std::string request, std::string path, eHTTPConnection *conn);
+       void addTranslation(std::string path, std::string root, int auth);
 };
 
 #endif