summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-03-02 22:35:20 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2011-03-02 22:35:20 +0100
commit7167b1c4ce914facaa14cd6db8cf7219b622da97 (patch)
treeabc81a74ec51f953b5eec25a086a82287609ddbe /cache.h
parent0c2f90ee5c713fcb3aedb236fcebe7dd6d323ba3 (diff)
parent6e7b8f94bf7fdc087cd1eed604eabed6070dffad (diff)
Merge branch 'master' into cache_range
Conflicts: music.cpp
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/cache.h b/cache.h
new file mode 100644
index 0000000..21d4a52
--- /dev/null
+++ b/cache.h
@@ -0,0 +1,26 @@
+#ifndef CACHE_H
+#define CACHE_H
+
+#include "decoder.h"
+#include "encoder.h"
+
+#include <boost/filesystem.hpp>
+
+namespace fs = boost::filesystem;
+
+class EncodedCache {
+ private:
+ Decoder::p decoder;
+ Encoder::p encoder;
+
+ std::string hash;
+
+ public:
+ EncodedCache(fs::path path, Decoder::p decoder, Encoder::p encoder);
+ virtual ~EncodedCache() {};
+
+ fs::path get_path();
+ void create_cache();
+};
+
+#endif