blob: 49882aba8ac2f10ea24b3e8b6ce97032252fc3c7 [file] [log] [blame] [edit]
//========================================================================
//
// CurlCachedFile.h
//
// This file is licensed under the GPLv2 or later
//
// Copyright 2010 Hib Eris <hib@hiberis.nl>
// Copyright 2010 Albert Astals Cid <aacid@kde.org>
//
//========================================================================
#ifndef CURLCACHELOADER_H
#define CURLCACHELOADER_H
#include "poppler-config.h"
#include "CachedFile.h"
#include <curl/curl.h>
//------------------------------------------------------------------------
class CurlCachedFileLoader : public CachedFileLoader {
public:
CurlCachedFileLoader();
~CurlCachedFileLoader();
size_t init(GooString *url, CachedFile* cachedFile);
int load(const std::vector<ByteRange> &ranges, CachedFileWriter *writer);
private:
GooString *url;
CachedFile *cachedFile;
CURL *curl;
};
#endif