Rename ScreenKDM -> KDMWithMetadata
authorCarl Hetherington <cth@carlh.net>
Mon, 4 May 2020 20:53:08 +0000 (22:53 +0200)
committerCarl Hetherington <cth@carlh.net>
Wed, 6 May 2020 18:15:16 +0000 (20:15 +0200)
14 files changed:
src/lib/cinema_kdms.cc
src/lib/cinema_kdms.h
src/lib/film.cc
src/lib/kdm_with_metadata.cc [new file with mode: 0644]
src/lib/kdm_with_metadata.h [new file with mode: 0644]
src/lib/screen_kdm.cc [deleted file]
src/lib/screen_kdm.h [deleted file]
src/lib/wscript
src/tools/dcpomatic.cc
src/tools/dcpomatic_kdm.cc
src/tools/dcpomatic_kdm_cli.cc
src/wx/kdm_dialog.cc
src/wx/kdm_output_panel.cc
src/wx/kdm_output_panel.h

index 3af1e0d84ca7c1ec932c635c9cfa223d32153e2f..99d1511520b1bbb3d1e1a73b5d01a6190c7ac07c 100644 (file)
@@ -47,7 +47,7 @@ CinemaKDMs::make_zip_file (boost::filesystem::path zip_file, dcp::NameFormat nam
 
        name_values['c'] = cinema->name;
 
-       BOOST_FOREACH (shared_ptr<ScreenKDM> i, screen_kdms) {
+       BOOST_FOREACH (shared_ptr<KDMWithMetadata> i, screen_kdms) {
                name_values['s'] = i->screen->name;
                name_values['i'] = i->kdm_id ();
                string const name = careful_string_filter(name_format.get(name_values, ".xml"));
@@ -57,11 +57,11 @@ CinemaKDMs::make_zip_file (boost::filesystem::path zip_file, dcp::NameFormat nam
        zipper.close ();
 }
 
-/** Collect a list of ScreenKDMs into a list of CinemaKDMs so that each
+/** Collect a list of KDMWithMetadatas into a list of CinemaKDMs so that each
  *  CinemaKDM contains the KDMs for its cinema.
  */
 list<CinemaKDMs>
-CinemaKDMs::collect (list<shared_ptr<ScreenKDM> > screen_kdms)
+CinemaKDMs::collect (list<shared_ptr<KDMWithMetadata> > screen_kdms)
 {
        list<CinemaKDMs> cinema_kdms;
 
@@ -71,17 +71,17 @@ CinemaKDMs::collect (list<shared_ptr<ScreenKDM> > screen_kdms)
 
                CinemaKDMs ck;
 
-               list<shared_ptr<ScreenKDM> >::iterator i = screen_kdms.begin ();
+               list<shared_ptr<KDMWithMetadata> >::iterator i = screen_kdms.begin ();
                ck.cinema = (*i)->screen->cinema;
                ck.screen_kdms.push_back (*i);
-               list<shared_ptr<ScreenKDM> >::iterator j = i;
+               list<shared_ptr<KDMWithMetadata> >::iterator j = i;
                ++i;
                screen_kdms.remove (*j);
 
                while (i != screen_kdms.end ()) {
                        if ((*i)->screen->cinema == ck.cinema) {
                                ck.screen_kdms.push_back (*i);
-                               list<shared_ptr<ScreenKDM> >::iterator j = i;
+                               list<shared_ptr<KDMWithMetadata> >::iterator j = i;
                                ++i;
                                screen_kdms.remove (*j);
                        } else {
@@ -117,7 +117,7 @@ CinemaKDMs::write_directories (
                path /= container_name_format.get(name_values, "");
                if (!boost::filesystem::exists (path) || confirm_overwrite (path)) {
                        boost::filesystem::create_directories (path);
-                       ScreenKDM::write_files (i.screen_kdms, path, filename_format, name_values, confirm_overwrite);
+                       KDMWithMetadata::write_files (i.screen_kdms, path, filename_format, name_values, confirm_overwrite);
                }
                written += i.screen_kdms.size();
        }
@@ -209,7 +209,7 @@ CinemaKDMs::email (
                boost::algorithm::replace_all (body, "$CINEMA_NAME", i.cinema->name);
 
                string screens;
-               BOOST_FOREACH (shared_ptr<ScreenKDM> j, i.screen_kdms) {
+               BOOST_FOREACH (shared_ptr<KDMWithMetadata> j, i.screen_kdms) {
                        screens += j->screen->name + ", ";
                }
                boost::algorithm::replace_all (body, "$SCREENS", screens.substr (0, screens.length() - 2));
index 2b82cdab6e7662a5b5a5f7d58993ca672d31e74b..0626ded5d0f7324d9ed5a3b66440cf4b6e93a70f 100644 (file)
@@ -18,7 +18,7 @@
 
 */
 
-#include "screen_kdm.h"
+#include "kdm_with_metadata.h"
 
 class Cinema;
 class Job;
@@ -29,7 +29,7 @@ class CinemaKDMs
 public:
        void make_zip_file (boost::filesystem::path zip_file, dcp::NameFormat name_format, dcp::NameFormat::Map name_values) const;
 
-       static std::list<CinemaKDMs> collect (std::list<boost::shared_ptr<ScreenKDM> > kdms);
+       static std::list<CinemaKDMs> collect (std::list<boost::shared_ptr<KDMWithMetadata> > kdms);
 
        static int write_directories (
                std::list<CinemaKDMs> cinema_kdms,
@@ -58,5 +58,5 @@ public:
                );
 
        boost::shared_ptr<Cinema> cinema;
-       std::list<boost::shared_ptr<ScreenKDM> > screen_kdms;
+       std::list<boost::shared_ptr<KDMWithMetadata> > screen_kdms;
 };
index cbbdf596478b796754ac4700cec20812a7935808..b233e5ee690a5ccf984aac7f730dd04ad8c13f94 100644 (file)
@@ -50,7 +50,7 @@
 #include "text_content.h"
 #include "ffmpeg_content.h"
 #include "dcp_content.h"
-#include "screen_kdm.h"
+#include "kdm_with_metadata.h"
 #include "cinema.h"
 #include "change_signaller.h"
 #include "check_content_change_job.h"
diff --git a/src/lib/kdm_with_metadata.cc b/src/lib/kdm_with_metadata.cc
new file mode 100644 (file)
index 0000000..e6b2834
--- /dev/null
@@ -0,0 +1,70 @@
+/*
+    Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
+
+    This file is part of DCP-o-matic.
+
+    DCP-o-matic is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    DCP-o-matic is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with DCP-o-matic.  If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+#include "kdm_with_metadata.h"
+#include "cinema.h"
+#include "screen.h"
+#include "util.h"
+#include <boost/foreach.hpp>
+
+using std::string;
+using std::cout;
+using std::list;
+using boost::shared_ptr;
+
+int
+KDMWithMetadata::write_files (
+       list<shared_ptr<KDMWithMetadata> > screen_kdms,
+       boost::filesystem::path directory,
+       dcp::NameFormat name_format,
+       dcp::NameFormat::Map name_values,
+       boost::function<bool (boost::filesystem::path)> confirm_overwrite
+       )
+{
+       int written = 0;
+
+       if (directory == "-") {
+               /* Write KDMs to the stdout */
+               BOOST_FOREACH (shared_ptr<KDMWithMetadata> i, screen_kdms) {
+                       cout << i->kdm_as_xml ();
+                       ++written;
+               }
+
+               return written;
+       }
+
+       if (!boost::filesystem::exists (directory)) {
+               boost::filesystem::create_directories (directory);
+       }
+
+       /* Write KDMs to the specified directory */
+       BOOST_FOREACH (shared_ptr<KDMWithMetadata> i, screen_kdms) {
+               name_values['c'] = i->screen->cinema ? i->screen->cinema->name : "";
+               name_values['s'] = i->screen->name;
+               name_values['i'] = i->kdm_id ();
+               boost::filesystem::path out = directory / careful_string_filter(name_format.get(name_values, ".xml"));
+               if (!boost::filesystem::exists (out) || confirm_overwrite (out)) {
+                       i->kdm_as_xml (out);
+                       ++written;
+               }
+       }
+
+       return written;
+}
diff --git a/src/lib/kdm_with_metadata.h b/src/lib/kdm_with_metadata.h
new file mode 100644 (file)
index 0000000..8d6d61d
--- /dev/null
@@ -0,0 +1,106 @@
+/*
+    Copyright (C) 2013-2019 Carl Hetherington <cth@carlh.net>
+
+    This file is part of DCP-o-matic.
+
+    DCP-o-matic is free software; you can redistribute it and/or modify
+    it under the terms of the GNU General Public License as published by
+    the Free Software Foundation; either version 2 of the License, or
+    (at your option) any later version.
+
+    DCP-o-matic is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+    GNU General Public License for more details.
+
+    You should have received a copy of the GNU General Public License
+    along with DCP-o-matic.  If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+#ifndef DCPOMATIC_KDM_WITH_METADATA_H
+#define DCPOMATIC_KDM_WITH_METADATA_H
+
+#ifdef DCPOMATIC_VARIANT_SWAROOP
+#include "encrypted_ecinema_kdm.h"
+#endif
+#include <dcp/encrypted_kdm.h>
+#include <dcp/name_format.h>
+#include <boost/shared_ptr.hpp>
+
+namespace dcpomatic {
+       class Screen;
+}
+
+/** Simple class to collect a screen and an encrypted KDM */
+class KDMWithMetadata
+{
+public:
+       KDMWithMetadata (boost::shared_ptr<dcpomatic::Screen> s)
+               : screen (s)
+       {}
+
+       virtual ~KDMWithMetadata () {}
+
+       virtual std::string kdm_as_xml () const = 0;
+       virtual void kdm_as_xml (boost::filesystem::path out) const = 0;
+       virtual std::string kdm_id () const = 0;
+
+       static int write_files (
+               std::list<boost::shared_ptr<KDMWithMetadata> > screen_kdms, boost::filesystem::path directory,
+               dcp::NameFormat name_format, dcp::NameFormat::Map name_values,
+               boost::function<bool (boost::filesystem::path)> confirm_overwrite
+               );
+
+       boost::shared_ptr<dcpomatic::Screen> screen;
+};
+
+class DCPKDMWithMetadata : public KDMWithMetadata
+{
+public:
+       DCPKDMWithMetadata (boost::shared_ptr<dcpomatic::Screen> s, dcp::EncryptedKDM k)
+               : KDMWithMetadata (s)
+               , kdm (k)
+       {}
+
+       std::string kdm_as_xml () const {
+               return kdm.as_xml ();
+       }
+
+       void kdm_as_xml (boost::filesystem::path out) const {
+               return kdm.as_xml (out);
+       }
+
+       std::string kdm_id () const {
+               return kdm.cpl_id ();
+       }
+
+       dcp::EncryptedKDM kdm;
+};
+
+#ifdef DCPOMATIC_VARIANT_SWAROOP
+class ECinemaKDMWithMetadata : public KDMWithMetadata
+{
+public:
+       ECinemaKDMWithMetadata (boost::shared_ptr<dcpomatic::Screen> s, EncryptedECinemaKDM k)
+               : KDMWithMetadata (s)
+               , kdm (k)
+       {}
+
+       std::string kdm_as_xml () const {
+               return kdm.as_xml ();
+       }
+
+       void kdm_as_xml (boost::filesystem::path out) const {
+               return kdm.as_xml (out);
+       }
+
+       std::string kdm_id () const {
+               return kdm.id ();
+       }
+
+       EncryptedECinemaKDM kdm;
+};
+#endif
+
+#endif
diff --git a/src/lib/screen_kdm.cc b/src/lib/screen_kdm.cc
deleted file mode 100644 (file)
index f9a3fa3..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
-    Copyright (C) 2013-2016 Carl Hetherington <cth@carlh.net>
-
-    This file is part of DCP-o-matic.
-
-    DCP-o-matic is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    DCP-o-matic is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with DCP-o-matic.  If not, see <http://www.gnu.org/licenses/>.
-
-*/
-
-#include "screen_kdm.h"
-#include "cinema.h"
-#include "screen.h"
-#include "util.h"
-#include <boost/foreach.hpp>
-
-using std::string;
-using std::cout;
-using std::list;
-using boost::shared_ptr;
-
-int
-ScreenKDM::write_files (
-       list<shared_ptr<ScreenKDM> > screen_kdms,
-       boost::filesystem::path directory,
-       dcp::NameFormat name_format,
-       dcp::NameFormat::Map name_values,
-       boost::function<bool (boost::filesystem::path)> confirm_overwrite
-       )
-{
-       int written = 0;
-
-       if (directory == "-") {
-               /* Write KDMs to the stdout */
-               BOOST_FOREACH (shared_ptr<ScreenKDM> i, screen_kdms) {
-                       cout << i->kdm_as_xml ();
-                       ++written;
-               }
-
-               return written;
-       }
-
-       if (!boost::filesystem::exists (directory)) {
-               boost::filesystem::create_directories (directory);
-       }
-
-       /* Write KDMs to the specified directory */
-       BOOST_FOREACH (shared_ptr<ScreenKDM> i, screen_kdms) {
-               name_values['c'] = i->screen->cinema ? i->screen->cinema->name : "";
-               name_values['s'] = i->screen->name;
-               name_values['i'] = i->kdm_id ();
-               boost::filesystem::path out = directory / careful_string_filter(name_format.get(name_values, ".xml"));
-               if (!boost::filesystem::exists (out) || confirm_overwrite (out)) {
-                       i->kdm_as_xml (out);
-                       ++written;
-               }
-       }
-
-       return written;
-}
diff --git a/src/lib/screen_kdm.h b/src/lib/screen_kdm.h
deleted file mode 100644 (file)
index a1e3624..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-/*
-    Copyright (C) 2013-2019 Carl Hetherington <cth@carlh.net>
-
-    This file is part of DCP-o-matic.
-
-    DCP-o-matic is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    DCP-o-matic is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with DCP-o-matic.  If not, see <http://www.gnu.org/licenses/>.
-
-*/
-
-#ifndef DCPOMATIC_SCREEN_KDM_H
-#define DCPOMATIC_SCREEN_KDM_H
-
-#ifdef DCPOMATIC_VARIANT_SWAROOP
-#include "encrypted_ecinema_kdm.h"
-#endif
-#include <dcp/encrypted_kdm.h>
-#include <dcp/name_format.h>
-#include <boost/shared_ptr.hpp>
-
-namespace dcpomatic {
-       class Screen;
-}
-
-/** Simple class to collect a screen and an encrypted KDM */
-class ScreenKDM
-{
-public:
-       ScreenKDM (boost::shared_ptr<dcpomatic::Screen> s)
-               : screen (s)
-       {}
-
-       virtual ~ScreenKDM () {}
-
-       virtual std::string kdm_as_xml () const = 0;
-       virtual void kdm_as_xml (boost::filesystem::path out) const = 0;
-       virtual std::string kdm_id () const = 0;
-
-       static int write_files (
-               std::list<boost::shared_ptr<ScreenKDM> > screen_kdms, boost::filesystem::path directory,
-               dcp::NameFormat name_format, dcp::NameFormat::Map name_values,
-               boost::function<bool (boost::filesystem::path)> confirm_overwrite
-               );
-
-       boost::shared_ptr<dcpomatic::Screen> screen;
-};
-
-class DCPScreenKDM : public ScreenKDM
-{
-public:
-       DCPScreenKDM (boost::shared_ptr<dcpomatic::Screen> s, dcp::EncryptedKDM k)
-               : ScreenKDM (s)
-               , kdm (k)
-       {}
-
-       std::string kdm_as_xml () const {
-               return kdm.as_xml ();
-       }
-
-       void kdm_as_xml (boost::filesystem::path out) const {
-               return kdm.as_xml (out);
-       }
-
-       std::string kdm_id () const {
-               return kdm.cpl_id ();
-       }
-
-       dcp::EncryptedKDM kdm;
-};
-
-#ifdef DCPOMATIC_VARIANT_SWAROOP
-class ECinemaScreenKDM : public ScreenKDM
-{
-public:
-       ECinemaScreenKDM (boost::shared_ptr<dcpomatic::Screen> s, EncryptedECinemaKDM k)
-               : ScreenKDM (s)
-               , kdm (k)
-       {}
-
-       std::string kdm_as_xml () const {
-               return kdm.as_xml ();
-       }
-
-       void kdm_as_xml (boost::filesystem::path out) const {
-               return kdm.as_xml (out);
-       }
-
-       std::string kdm_id () const {
-               return kdm.id ();
-       }
-
-       EncryptedECinemaKDM kdm;
-};
-#endif
-
-#endif
index ea52079d03dc0d5bf255584bc98e7a2677f64dca..19d68f04552a6544bc358b11dcb67f4bf39c4c5b 100644 (file)
@@ -125,6 +125,7 @@ sources = """
           job_manager.cc
           j2k_encoder.cc
           json_server.cc
+          kdm_with_metadata.cc
           lock_file_checker.cc
           log.cc
           log_entry.cc
@@ -145,7 +146,6 @@ sources = """
           scoped_temporary.cc
           scp_uploader.cc
           screen.cc
-          screen_kdm.cc
           send_kdm_email_job.cc
           send_notification_email_job.cc
           send_problem_report_job.cc
index aea058d8048c72f50d969ce5f67385ad1b83f846..5976de22aa98881da8dc3467711ad645fee0473f 100644 (file)
@@ -65,7 +65,7 @@
 #include "lib/job_manager.h"
 #include "lib/exceptions.h"
 #include "lib/cinema.h"
-#include "lib/screen_kdm.h"
+#include "lib/kdm_with_metadata.h"
 #include "lib/send_kdm_email_job.h"
 #include "lib/encode_server_finder.h"
 #include "lib/update_checker.h"
index ef6b783f4fa0045bb753b2fdfc8f4aefe1509d80..1ff69d13562cd3dfcdd2f194be6c70796283506a 100644 (file)
@@ -38,7 +38,7 @@
 #include "lib/util.h"
 #include "lib/screen.h"
 #include "lib/job_manager.h"
-#include "lib/screen_kdm.h"
+#include "lib/kdm_with_metadata.h"
 #include "lib/exceptions.h"
 #include "lib/cinema_kdms.h"
 #include "lib/send_kdm_email_job.h"
@@ -303,7 +303,7 @@ private:
                                return;
                        }
 
-                       list<shared_ptr<ScreenKDM> > screen_kdms;
+                       list<shared_ptr<KDMWithMetadata> > screen_kdms;
                        string title;
 
 #ifdef DCPOMATIC_VARIANT_SWAROOP
@@ -328,8 +328,8 @@ private:
 
                                        /* Encrypt */
                                        screen_kdms.push_back (
-                                               shared_ptr<ScreenKDM>(
-                                                       new ECinemaScreenKDM(i, kdm.encrypt(i->recipient.get()))
+                                               shared_ptr<KDMWithMetadata>(
+                                                       new ECinemaKDMWithMetadata(i, kdm.encrypt(i->recipient.get()))
                                                        )
                                                );
                                }
@@ -371,8 +371,8 @@ private:
 
                                        /* Encrypt */
                                        screen_kdms.push_back (
-                                               shared_ptr<ScreenKDM>(
-                                                       new DCPScreenKDM(
+                                               shared_ptr<KDMWithMetadata>(
+                                                       new DCPKDMWithMetadata(
                                                                i,
                                                                kdm.encrypt(
                                                                        signer, i->recipient.get(), i->trusted_device_thumbprints(), _output->formulation(),
index 505a70c2bcc7d3574206bf16d1834c12bbd8a5c1..1aad31cb534d7d1fd656bad295b55de3afc95110 100644 (file)
@@ -24,7 +24,7 @@
 
 #include "lib/film.h"
 #include "lib/cinema.h"
-#include "lib/screen_kdm.h"
+#include "lib/kdm_with_metadata.h"
 #include "lib/cinema_kdms.h"
 #include "lib/config.h"
 #include "lib/exceptions.h"
@@ -130,7 +130,7 @@ always_overwrite ()
 
 void
 write_files (
-       list<shared_ptr<ScreenKDM> > screen_kdms,
+       list<shared_ptr<KDMWithMetadata> > screen_kdms,
        bool zip,
        boost::filesystem::path output,
        dcp::NameFormat container_name_format,
@@ -153,7 +153,7 @@ write_files (
                        cout << "Wrote " << N << " ZIP files to " << output << "\n";
                }
        } else {
-               int const N = ScreenKDM::write_files (
+               int const N = KDMWithMetadata::write_files (
                        screen_kdms, output, filename_format, values,
                        bind (&always_overwrite)
                        );
@@ -229,7 +229,7 @@ from_film (
        values['e'] = dcp::LocalTime(valid_to).date() + " " + dcp::LocalTime(valid_to).time_of_day(true, false);
 
        try {
-               list<shared_ptr<ScreenKDM> > kdms;
+               list<shared_ptr<KDMWithMetadata> > kdms;
 
                BOOST_FOREACH (shared_ptr<Screen> i, screens) {
                        if (i->recipient) {
@@ -244,7 +244,7 @@ from_film (
                                                disable_forensic_marking_audio
                                                );
 
-                               kdms.push_back (shared_ptr<ScreenKDM>(new DCPScreenKDM(i, kdm)));
+                               kdms.push_back (shared_ptr<KDMWithMetadata>(new DCPKDMWithMetadata(i, kdm)));
                        }
                }
 
@@ -345,15 +345,15 @@ from_dkdm (
        values['e'] = dcp::LocalTime(valid_to).date() + " " + dcp::LocalTime(valid_to).time_of_day(true, false);
 
        try {
-               list<shared_ptr<ScreenKDM> > screen_kdms;
+               list<shared_ptr<KDMWithMetadata> > screen_kdms;
                BOOST_FOREACH (shared_ptr<Screen> i, screens) {
                        if (!i->recipient) {
                                continue;
                        }
 
                        screen_kdms.push_back (
-                               shared_ptr<ScreenKDM>(
-                                       new DCPScreenKDM(
+                               shared_ptr<KDMWithMetadata>(
+                                       new DCPKDMWithMetadata(
                                                i,
                                                kdm_from_dkdm(
                                                        dkdm,
index 59d961e6c9d1e226cf7790c0af252c72cb43bb48..06600ac7ad5ea92086c4889a784ca8891ade387f 100644 (file)
@@ -29,7 +29,7 @@
 #include "dcpomatic_button.h"
 #include "lib/film.h"
 #include "lib/screen.h"
-#include "lib/screen_kdm.h"
+#include "lib/kdm_with_metadata.h"
 #include "lib/job_manager.h"
 #include "lib/cinema_kdms.h"
 #include "lib/config.h"
@@ -150,7 +150,7 @@ KDMDialog::make_clicked ()
        shared_ptr<const Film> film = _film.lock ();
        DCPOMATIC_ASSERT (film);
 
-       list<shared_ptr<ScreenKDM> > screen_kdms;
+       list<shared_ptr<KDMWithMetadata> > screen_kdms;
        try {
                /* Start off by enabling forensic marking for all */
                optional<int> for_audio;
@@ -175,7 +175,7 @@ KDMDialog::make_clicked ()
                                                for_audio
                                                );
 
-                               screen_kdms.push_back (shared_ptr<ScreenKDM>(new DCPScreenKDM(i, kdm)));
+                               screen_kdms.push_back (shared_ptr<KDMWithMetadata>(new DCPKDMWithMetadata(i, kdm)));
                        }
                }
 
index d76a2735902d97923466f8ce1bac34b7ad391b1e..0320ed1b767629cef1731bc5db6504898cf206d8 100644 (file)
@@ -183,7 +183,7 @@ KDMOutputPanel::kdm_write_type_changed ()
 
 pair<shared_ptr<Job>, int>
 KDMOutputPanel::make (
-       list<shared_ptr<ScreenKDM> > screen_kdms, string name, KDMTimingPanel* timing, function<bool (boost::filesystem::path)> confirm_overwrite
+       list<shared_ptr<KDMWithMetadata> > screen_kdms, string name, KDMTimingPanel* timing, function<bool (boost::filesystem::path)> confirm_overwrite
        )
 {
        list<CinemaKDMs> const cinema_kdms = CinemaKDMs::collect (screen_kdms);
@@ -247,7 +247,7 @@ KDMOutputPanel::make (
 
                if (_write_to->GetValue()) {
                        if (_write_flat->GetValue()) {
-                               written = ScreenKDM::write_files (
+                               written = KDMWithMetadata::write_files (
                                        screen_kdms,
                                        directory(),
                                        _filename_format->get(),
index 7b931507170122d8ba7f78ffcfea864e26f2518c..730cb93601f785e7193e2e59245418c7230a74d7 100644 (file)
@@ -18,7 +18,7 @@
 
 */
 
-#include "lib/screen_kdm.h"
+#include "lib/kdm_with_metadata.h"
 #include "wx_util.h"
 #include "name_format_editor.h"
 #include <dcp/types.h>
@@ -52,7 +52,7 @@ public:
        }
 
        std::pair<boost::shared_ptr<Job>, int> make (
-               std::list<boost::shared_ptr<ScreenKDM> > screen_kdms,
+               std::list<boost::shared_ptr<KDMWithMetadata> > screen_kdms,
                std::string name,
                KDMTimingPanel* timing,
                boost::function<bool (boost::filesystem::path)> confirm_overwrite