X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fsubrip_content.h;h=3a8380cec56e1846060c3eacad2ecf4ea7dac1f8;hb=a79d78d8bb6d51f6662f1f63b9f8fd19e1a0c5f1;hp=741e1a4c3ba5618f0ca94bbac0b9a69d798232b9;hpb=f9608c5299d0a58bc01b33e521d89a80be26ed23;p=dcpomatic.git diff --git a/src/lib/subrip_content.h b/src/lib/subrip_content.h index 741e1a4c3..3a8380cec 100644 --- a/src/lib/subrip_content.h +++ b/src/lib/subrip_content.h @@ -25,14 +25,18 @@ public: SubRipContent (boost::shared_ptr, boost::filesystem::path); SubRipContent (boost::shared_ptr, boost::shared_ptr, 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; };