Add support for player logging.
[dcpomatic.git] / src / lib / string_text_file_content.h
index c2de86ce560d5809b97e1edd9c7d3a7a1c5db02d..936e894d8a567e663edfb1c3602b3229b56c656d 100644 (file)
@@ -28,18 +28,23 @@ 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;
+       DCPTime full_length (boost::shared_ptr<const Film> film) const;
+       DCPTime approximate_length () const;
 
 private:
        ContentTime _length;