+
+string
+Content::technical_summary () const
+{
+ return String::compose ("%1 %2 %3", path(), digest(), position());
+}
+
+Time
+Content::length_after_trim () const
+{
+ return full_length() - trim_start() - trim_end();
+}
+
+/** @param t A time relative to the start of this content (not the position).
+ * @return true if this time is trimmed by our trim settings.
+ */
+bool
+Content::trimmed (Time t) const
+{
+ return (t < trim_start() || t > (full_length() - trim_end ()));
+}
+
+/** @return string which includes everything about how this content affects
+ * its playlist.
+ */
+string
+Content::identifier () const
+{
+ stringstream s;
+
+ s << Content::digest()
+ << "_" << position()
+ << "_" << trim_start()
+ << "_" << trim_end();
+
+ return s.str ();
+}
+
+bool
+Content::path_valid () const
+{
+ return boost::filesystem::exists (_path);
+}
+
+void
+Content::set_path (boost::filesystem::path path)
+{
+ _path = path;
+ signal_changed (ContentProperty::PATH);
+}
+
+