diff options
| author | etobi <git@e-tobi.net> | 2009-11-03 19:02:47 +0100 |
|---|---|---|
| committer | etobi <git@e-tobi.net> | 2009-11-03 19:02:47 +0100 |
| commit | 90b872ed164d8cf004b40f0128fd7a9b3ca7d27e (patch) | |
| tree | b558cc69a5f750c98b90d4aac228d9d031d2316a /src/IDownloadCache.h | |
| download | vdr-plugin-vodcatcher-90b872ed164d8cf004b40f0128fd7a9b3ca7d27e.tar.gz vdr-plugin-vodcatcher-90b872ed164d8cf004b40f0128fd7a9b3ca7d27e.tar.bz2 | |
initial commit
Diffstat (limited to 'src/IDownloadCache.h')
| -rw-r--r-- | src/IDownloadCache.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/IDownloadCache.h b/src/IDownloadCache.h new file mode 100644 index 0000000..7ff150d --- /dev/null +++ b/src/IDownloadCache.h @@ -0,0 +1,43 @@ +/* + * vdr-vodcatcher - A plugin for the Linux Video Disk Recorder + * Copyright (c) 2007 - 2008 Tobias Grimm <vdr@e-tobi.net> + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation; either version 2 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more + * details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, write to the Free Software Foundation, Inc., + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + * + * $Id: IDownloadCache.h 7652 2008-08-05 21:37:57Z svntobi $ + * + */ + +#ifndef ___IDOWNLOADCACHE_H +#define ___IDOWNLOADCACHE_H + +#include <string> +#include <iostream> +#include "RefPtr.h" + +class IDownloadCache +{ +public: + virtual ~IDownloadCache() + { + } + virtual RefPtr<std::istream> CreateStreamByUrl(const std::string& url) const = 0; + virtual void Put(std::istream& document, const std::string& url) = 0; + virtual long GetAgeInMinutes(const std::string& url) const = 0; + virtual bool IsCached(const std::string& url) const = 0; + virtual void CleanUp(const long maxAge) = 0; +}; + +#endif |
