blob: 25c09742409adb59c157f909ac47394a9262c16f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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:
mutable boost::mutex _mutex;
private:
boost::filesystem::path _file;
std::string _digest;
};
#endif
|