X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fstring_text_file_content.h;h=959190d32a604ee37c0921928c796a49695f9cf5;hb=8f8730cadb3dae36e8aa7b7c732a7c162eac0fb6;hp=c2de86ce560d5809b97e1edd9c7d3a7a1c5db02d;hpb=df17bbd25da69fc38eb2dcd8b4a2531cf0bab0bc;p=dcpomatic.git diff --git a/src/lib/string_text_file_content.h b/src/lib/string_text_file_content.h index c2de86ce5..959190d32 100644 --- a/src/lib/string_text_file_content.h +++ b/src/lib/string_text_file_content.h @@ -28,19 +28,25 @@ class Job; class StringTextFileContent : public Content { public: - StringTextFileContent (boost::shared_ptr, boost::filesystem::path); - StringTextFileContent (boost::shared_ptr, cxml::ConstNodePtr, int); + StringTextFileContent (boost::filesystem::path); + StringTextFileContent (cxml::ConstNodePtr, int); boost::shared_ptr shared_from_this () { return boost::dynamic_pointer_cast (Content::shared_from_this ()); } - void examine (boost::shared_ptr); + 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 () 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; };