blob: 3a94d229787d02b43e87f6edc0c1858158f2d5a4 (
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
35
36
37
38
39
40
41
|
#ifndef DVDOMATIC_CONTENT_H
#define DVDOMATIC_CONTENT_H
#include <boost/filesystem.hpp>
#include <boost/signals2.hpp>
#include <boost/thread/mutex.hpp>
#include <libxml++/libxml++.h>
namespace cxml {
class Node;
}
class Job;
class Film;
class Content
{
public:
Content (boost::filesystem::path);
Content (boost::shared_ptr<const cxml::Node>);
virtual void examine (boost::shared_ptr<Film>, boost::shared_ptr<Job>, bool);
virtual std::string summary () const = 0;
virtual void as_xml (xmlpp::Node *) const;
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
|