+ _trim_end = t;
+ }
+
+ signal_changed (ContentProperty::TRIM_END);
+}
+
+
+shared_ptr<Content>
+Content::clone () const
+{
+ shared_ptr<const Film> film = _film.lock ();
+ if (!film) {
+ return shared_ptr<Content> ();
+ }
+
+ /* This is a bit naughty, but I can't think of a compelling reason not to do it ... */
+ xmlpp::Document doc;
+ xmlpp::Node* node = doc.create_root_node ("Content");
+ as_xml (node);
+
+ /* notes is unused here (we assume) */
+ list<string> notes;
+ return content_factory (film, cxml::NodePtr (new cxml::Node (node)), Film::current_state_version, notes);
+}
+
+string
+Content::technical_summary () const
+{
+ return String::compose ("%1 %2 %3", path_summary(), digest(), position().seconds());
+}
+
+DCPTime
+Content::length_after_trim () const
+{
+ return full_length() - trim_start() - trim_end();
+}
+
+/** @return string which includes everything about how this content affects
+ * its playlist.
+ */
+string
+Content::identifier () const
+{
+ stringstream s;
+
+ s << Content::digest()
+ << "_" << position().get()
+ << "_" << trim_start().get()
+ << "_" << trim_end().get();
+
+ return s.str ();
+}
+
+bool
+Content::paths_valid () const
+{
+ for (vector<boost::filesystem::path>::const_iterator i = _paths.begin(); i != _paths.end(); ++i) {
+ if (!boost::filesystem::exists (*i)) {
+ return false;
+ }
+ }
+
+ return true;
+}
+
+void
+Content::set_path (boost::filesystem::path path)
+{
+ _paths.clear ();
+ _paths.push_back (path);
+ signal_changed (ContentProperty::PATH);
+}
+
+string
+Content::path_summary () const
+{
+ /* XXX: should handle multiple paths more gracefully */
+
+ assert (number_of_paths ());
+
+ string s = path(0).filename().string ();
+ if (number_of_paths() > 1) {
+ s += " ...";