Allow more complete control over the libdcp/DCP-o-matic metadata written to various...
[dcpomatic.git] / src / lib / playlist.h
index d7db75d0fb9ed44feccfb7a70a0561780eea5eb6..51c13e33f19a1af510ffcaf5763d65f7689bae7b 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2013-2018 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2013-2020 Carl Hetherington <cth@carlh.net>
 
     This file is part of DCP-o-matic.
 
 
 #include "util.h"
 #include "frame_rate_change.h"
-#include "atomicity_checker.h"
 #include <libcxml/cxml.h>
 #include <boost/shared_ptr.hpp>
 #include <boost/signals2.hpp>
+#include <boost/thread.hpp>
 #include <list>
 
 class Film;
@@ -77,7 +77,9 @@ public:
 
        /** Emitted when content has been added to or removed from the playlist; implies OrderChanged */
        mutable boost::signals2::signal<void (ChangeType)> Change;
-       mutable boost::signals2::signal<void ()> OrderChanged;
+       mutable boost::signals2::signal<void ()> OrderChange;
+       /** Emitted when the length might have changed; may sometimes be emitted when it has not */
+       mutable boost::signals2::signal<void ()> LengthChange;
 
        mutable boost::signals2::signal<void (ChangeType, boost::weak_ptr<Content>, int, bool)> ContentChange;
 
@@ -92,7 +94,6 @@ private:
        bool _sequence;
        bool _sequencing;
        std::list<boost::signals2::connection> _content_connections;
-       AtomicityChecker _checker;
 };
 
 #endif