Some missing copy constructors / operator= / noncopyable.
[dcpomatic.git] / src / lib / content.h
index e33f517abf1f9e6205a208ccc44539c6b592f7ed..cd8914cba095b88aff3597d6def5cb167a280a1b 100644 (file)
@@ -20,6 +20,7 @@
 #ifndef DCPOMATIC_CONTENT_H
 #define DCPOMATIC_CONTENT_H
 
+#include <set>
 #include <boost/filesystem.hpp>
 #include <boost/signals2.hpp>
 #include <boost/thread/mutex.hpp>
@@ -48,6 +49,7 @@ public:
        Content (boost::shared_ptr<const Film>, boost::filesystem::path);
        Content (boost::shared_ptr<const Film>, boost::shared_ptr<const cxml::Node>);
        Content (Content const &);
+       virtual ~Content () {}
        
        virtual void examine (boost::shared_ptr<Job>);
        virtual std::string summary () const = 0;
@@ -61,6 +63,7 @@ public:
                return _file;
        }
 
+       /** @return MD5 digest of the content's file */
        std::string digest () const {
                boost::mutex::scoped_lock lm (_mutex);
                return _digest;
@@ -77,7 +80,11 @@ public:
                return start() + length();
        }
 
-       boost::signals2::signal<void (boost::weak_ptr<Content>, int)> Changed;
+       void set_change_signals_frequent (bool f) {
+               _change_signals_frequent = f;
+       }
+
+       boost::signals2::signal<void (boost::weak_ptr<Content>, int, bool)> Changed;
 
 protected:
        void signal_changed (int);
@@ -89,6 +96,7 @@ private:
        boost::filesystem::path _file;
        std::string _digest;
        Time _start;
+       bool _change_signals_frequent;
 };
 
 #endif