Support download of KDMs from a web service in swaroop profile.
[dcpomatic.git] / src / lib / dcp_examiner.h
index 9d6faa7e8d49ca230c55a0d7b179d6bc7f6d1a7d..4b93bfa4298e99606f9d61f4e14923221065f268 100644 (file)
@@ -59,10 +59,6 @@ public:
                return _name;
        }
 
-       bool has_subtitles () const {
-               return _has_subtitles;
-       }
-
        bool encrypted () const {
                return _encrypted;
        }
@@ -87,6 +83,10 @@ public:
                return _audio_frame_rate.get_value_or (48000);
        }
 
+       bool has_text (TextType type) const {
+               return _has_text[type];
+       }
+
        bool kdm_valid () const {
                return _kdm_valid;
        }
@@ -115,12 +115,12 @@ private:
        boost::optional<int> _audio_frame_rate;
        Frame _audio_length;
        std::string _name;
-       bool _has_subtitles;
-       bool _encrypted;
        /** true if this DCP has video content (but false if it has unresolved references to video content) */
        bool _has_video;
        /** true if this DCP has audio content (but false if it has unresolved references to audio content) */
        bool _has_audio;
+       bool _has_text[TEXT_COUNT];
+       bool _encrypted;
        bool _needs_assets;
        bool _kdm_valid;
        boost::optional<dcp::Standard> _standard;