beta-0.89.2
[luatex.git] / source / libs / poppler / poppler-src / poppler / CurlCachedFile.h
blob49882aba8ac2f10ea24b3e8b6ce97032252fc3c7
1 //========================================================================
2 //
3 // CurlCachedFile.h
4 //
5 // This file is licensed under the GPLv2 or later
6 //
7 // Copyright 2010 Hib Eris <hib@hiberis.nl>
8 // Copyright 2010 Albert Astals Cid <aacid@kde.org>
9 //
10 //========================================================================
12 #ifndef CURLCACHELOADER_H
13 #define CURLCACHELOADER_H
15 #include "poppler-config.h"
16 #include "CachedFile.h"
18 #include <curl/curl.h>
20 //------------------------------------------------------------------------
22 class CurlCachedFileLoader : public CachedFileLoader {
24 public:
26 CurlCachedFileLoader();
27 ~CurlCachedFileLoader();
28 size_t init(GooString *url, CachedFile* cachedFile);
29 int load(const std::vector<ByteRange> &ranges, CachedFileWriter *writer);
31 private:
33 GooString *url;
34 CachedFile *cachedFile;
35 CURL *curl;
39 #endif