+ void add (std::shared_ptr<const Film> film, std::shared_ptr<Content>);
+ void remove (std::shared_ptr<Content>);
+ void remove (ContentList);
+ void move_earlier (std::shared_ptr<const Film> film, std::shared_ptr<Content>);
+ void move_later (std::shared_ptr<const Film> film, std::shared_ptr<Content>);
+
+ ContentList content () const;
+
+ std::string video_identifier () const;
+
+ dcpomatic::DCPTime length (std::shared_ptr<const Film> film) const;
+ boost::optional<dcpomatic::DCPTime> start () const;
+ int64_t required_disk_space (std::shared_ptr<const Film> film, int j2k_bandwidth, int audio_channels, int audio_frame_rate) const;
+
+ int best_video_frame_rate () const;
+ dcpomatic::DCPTime video_end (std::shared_ptr<const Film> film) const;
+ dcpomatic::DCPTime text_end (std::shared_ptr<const Film> film) const;
+ FrameRateChange active_frame_rate_change (dcpomatic::DCPTime, int dcp_frame_rate) const;
+ std::string content_summary (std::shared_ptr<const Film> film, dcpomatic::DCPTimePeriod period) const;
+ std::pair<double, double> speed_up_range (int dcp_video_frame_rate) const;
+
+ void set_sequence (bool);
+ void maybe_sequence (std::shared_ptr<const Film> film);
+
+ void repeat (std::shared_ptr<const Film> film, ContentList, int);
+
+ /** Emitted when content has been added to or removed from the playlist; implies OrderChange */
+ mutable boost::signals2::signal<void (ChangeType)> Change;
+ 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, std::weak_ptr<Content>, int, bool)> ContentChange;
+
+private:
+ void content_change (std::weak_ptr<const Film>, ChangeType, std::weak_ptr<Content>, int, bool);
+ void disconnect ();
+ void reconnect (std::shared_ptr<const Film> film);
+
+ mutable boost::mutex _mutex;
+ /** List of content. Kept sorted in position order. */
+ ContentList _content;
+ bool _sequence = true;
+ bool _sequencing = false;