summaryrefslogtreecommitdiff
path: root/src/lib/content.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-03-31 15:09:49 +0100
committerCarl Hetherington <cth@carlh.net>2013-03-31 15:09:49 +0100
commit127672223cca569986e35c91265e269ed5a6561c (patch)
tree853793c1b929d4c38ebdf5456808e466083989b7 /src/lib/content.h
parented78fd3d138114185e43edf81ffe91db17377da0 (diff)
Runs.
Diffstat (limited to 'src/lib/content.h')
-rw-r--r--src/lib/content.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/lib/content.h b/src/lib/content.h
index c848860aa..25c097424 100644
--- a/src/lib/content.h
+++ b/src/lib/content.h
@@ -1,17 +1,34 @@
+#ifndef DVDOMATIC_CONTENT_H
+#define DVDOMATIC_CONTENT_H
+
#include <boost/filesystem.hpp>
+#include <boost/signals2.hpp>
#include <boost/thread/mutex.hpp>
+class Job;
+class Film;
+
class Content
{
public:
+ Content (boost::filesystem::path);
+
+ virtual void examine (boost::shared_ptr<Film>, boost::shared_ptr<Job>, bool);
+ virtual std::string summary () const = 0;
+
boost::filesystem::path file () const {
boost::mutex::scoped_lock lm (_mutex);
return _file;
}
+ boost::signals2::signal<void (int)> Changed;
+
protected:
- boost::mutex _mutex;
+ mutable boost::mutex _mutex;
private:
boost::filesystem::path _file;
+ std::string _digest;
};
+
+#endif