//======================================================================== // // CurlCachedFile.h // // This file is licensed under the GPLv2 or later // // Copyright 2010 Hib Eris // Copyright 2010 Albert Astals Cid // //======================================================================== #ifndef CURLCACHELOADER_H #define CURLCACHELOADER_H #include "poppler-config.h" #include "CachedFile.h" #include //------------------------------------------------------------------------ class CurlCachedFileLoader : public CachedFileLoader { public: CurlCachedFileLoader(); ~CurlCachedFileLoader() override; size_t init(GooString *url, CachedFile *cachedFile) override; int load(const std::vector &ranges, CachedFileWriter *writer) override; private: GooString *url; CachedFile *cachedFile; CURL *curl; }; #endif