Don't offer to make KDMs for CPLs with no encrypted assets (#1490).
[dcpomatic.git] / src / lib / types.h
index 607c9e275098ba840af9395bbfbe7b979afee55c..3c9a8025b1a39a5006982a021ec5502e12f25e72 100644 (file)
@@ -205,17 +205,22 @@ struct Crop
 
 struct CPLSummary
 {
-       CPLSummary (std::string d, std::string i, std::string a, boost::filesystem::path f)
+       CPLSummary (boost::filesystem::path p);
+
+       CPLSummary (std::string d, std::string i, std::string a, boost::filesystem::path f, bool e)
                : dcp_directory (d)
                , cpl_id (i)
                , cpl_annotation_text (a)
                , cpl_file (f)
+               , encrypted (e)
        {}
 
        std::string dcp_directory;
        std::string cpl_id;
        std::string cpl_annotation_text;
        boost::filesystem::path cpl_file;
+       /** true if this CPL has any encrypted assets */
+       bool encrypted;
 };
 
 extern bool operator== (Crop const & a, Crop const & b);