X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fsubrip_content.h;h=5688f81d5fe44639450e3d8d8a57d4acb9f4a9b3;hb=096660d2cc3e65ae5e13a69e7ace19ff0d48b39a;hp=741e1a4c3ba5618f0ca94bbac0b9a69d798232b9;hpb=f9608c5299d0a58bc01b33e521d89a80be26ed23;p=dcpomatic.git diff --git a/src/lib/subrip_content.h b/src/lib/subrip_content.h index 741e1a4c3..5688f81d5 100644 --- a/src/lib/subrip_content.h +++ b/src/lib/subrip_content.h @@ -23,16 +23,20 @@ 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 ()); + } + 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; + void as_xml (xmlpp::Node *) const; + DCPTime full_length () const; std::string identifier () const; private: - Time _length; + DCPTime _length; };