Move _state_timer into VideoView.
[dcpomatic.git] / src / lib / string_text_file_content.h
index c2de86ce560d5809b97e1edd9c7d3a7a1c5db02d..959190d32a604ee37c0921928c796a49695f9cf5 100644 (file)
@@ -28,19 +28,25 @@ class Job;
 class StringTextFileContent : public Content
 {
 public:
-       StringTextFileContent (boost::shared_ptr<const Film>, boost::filesystem::path);
-       StringTextFileContent (boost::shared_ptr<const Film>, cxml::ConstNodePtr, int);
+       StringTextFileContent (boost::filesystem::path);
+       StringTextFileContent (cxml::ConstNodePtr, int);
 
        boost::shared_ptr<StringTextFileContent> shared_from_this () {
                return boost::dynamic_pointer_cast<StringTextFileContent> (Content::shared_from_this ());
        }
 
-       void examine (boost::shared_ptr<Job>);
+       boost::shared_ptr<const StringTextFileContent> shared_from_this () const {
+               return boost::dynamic_pointer_cast<const StringTextFileContent> (Content::shared_from_this ());
+       }
+
+       void examine (boost::shared_ptr<const Film> film, boost::shared_ptr<Job>);
        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<const Film> film) const;
+       dcpomatic::DCPTime approximate_length () const;
+       std::string identifier () const;
 
 private:
-       ContentTime _length;
+       dcpomatic::ContentTime _length;
 };