X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdcp_subtitle_content.h;h=05af716906a31b05f96de284c4cbf1df5e62b9b7;hb=59e769023c392c332331567a1aea94660002c463;hp=79338c1af6d7e4137001a5c8c35765aa6d0c7c61;hpb=8d58a7c5f4320ad5c111e336c45e44d6b51ab509;p=dcpomatic.git diff --git a/src/lib/dcp_subtitle_content.h b/src/lib/dcp_subtitle_content.h index 79338c1af..05af71690 100644 --- a/src/lib/dcp_subtitle_content.h +++ b/src/lib/dcp_subtitle_content.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2014 Carl Hetherington + Copyright (C) 2014-2015 Carl Hetherington This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -18,20 +18,26 @@ */ #include "subtitle_content.h" +#include "dcp_subtitle.h" -class DCPSubtitleContent : public SubtitleContent +class DCPSubtitleContent : public SubtitleContent, public DCPSubtitle { public: DCPSubtitleContent (boost::shared_ptr, boost::filesystem::path); DCPSubtitleContent (boost::shared_ptr, cxml::ConstNodePtr, int); + /* Content */ void examine (boost::shared_ptr); std::string summary () const; std::string technical_summary () const; - std::string information () const; void as_xml (xmlpp::Node *) const; DCPTime full_length () const; + /* SubtitleContent */ + bool has_subtitles () const { + return true; + } + private: DCPTime _length; };