X-Git-Url: https://main.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fstring_text_file_content.h;h=959190d32a604ee37c0921928c796a49695f9cf5;hp=9a71d5828696683aa6b97b5b460c0eeda1ed377e;hb=5eb8b5c3a1566aef638e9d9df03b88d320735092;hpb=254b3044d72de6b033d7c584f5abd2b9aa70aad5 diff --git a/src/lib/string_text_file_content.h b/src/lib/string_text_file_content.h index 9a71d5828..959190d32 100644 --- a/src/lib/string_text_file_content.h +++ b/src/lib/string_text_file_content.h @@ -35,12 +35,18 @@ public: return boost::dynamic_pointer_cast (Content::shared_from_this ()); } + boost::shared_ptr shared_from_this () const { + return boost::dynamic_pointer_cast (Content::shared_from_this ()); + } + void examine (boost::shared_ptr film, boost::shared_ptr); std::string summary () const; std::string technical_summary () const; void as_xml (xmlpp::Node *, bool with_paths) const; - DCPTime full_length (boost::shared_ptr film) const; + dcpomatic::DCPTime full_length (boost::shared_ptr film) const; + dcpomatic::DCPTime approximate_length () const; + std::string identifier () const; private: - ContentTime _length; + dcpomatic::ContentTime _length; };