#include "ui_signaller.h"
using std::string;
+using std::stringstream;
using std::set;
using boost::shared_ptr;
using boost::lexical_cast;
{
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 ();
+}
virtual std::string information () const = 0;
virtual void as_xml (xmlpp::Node *) const;
virtual Time full_length () const = 0;
+ virtual std::string identifier () const;
boost::shared_ptr<Content> clone () const;
VideoContent::identifier () const
{
stringstream s;
- s << Content::digest()
+ s << Content::identifier()
<< "_" << crop().left
<< "_" << crop().right
<< "_" << crop().top