X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fsubrip_content.h;h=d2dcdee00b09cce5e1b014dba924fd0b09bea8ff;hb=3c4eb194c031950165ab63785368784a38bd752d;hp=1551081b68acf9070e910f92cd8eb18dbd58e777;hpb=7e2cf1a4a04828b5a57d5eb6869475a819005602;p=dcpomatic.git diff --git a/src/lib/subrip_content.h b/src/lib/subrip_content.h index 1551081b6..d2dcdee00 100644 --- a/src/lib/subrip_content.h +++ b/src/lib/subrip_content.h @@ -23,13 +23,25 @@ class SubRipContent : public SubtitleContent { public: SubRipContent (boost::shared_ptr, boost::filesystem::path); - SubRipContent (boost::shared_ptr, boost::shared_ptr, int); + SubRipContent (boost::shared_ptr, cxml::ConstNodePtr, int); + boost::shared_ptr shared_from_this () { + return boost::dynamic_pointer_cast (Content::shared_from_this ()); + } + + /* Content */ void examine (boost::shared_ptr); std::string summary () const; std::string technical_summary () const; std::string information () const; - void as_xml (xmlpp::Node *); - Time full_length () const; - std::string identifier () const; + void as_xml (xmlpp::Node *) const; + DCPTime full_length () const; + + /* SubtitleContent */ + bool has_subtitles () const { + return true; + } + +private: + DCPTime _length; };