Simple cover sheet support (#1039).
[dcpomatic.git] / src / lib / send_kdm_email_job.cc
index 4834657edbf592064d4c764643c92ae02f0e02c0..890115747a3c379b6e64cfcb2e4cf28f80807cfd 100644 (file)
@@ -30,11 +30,16 @@ using std::string;
 using std::list;
 using boost::shared_ptr;
 
-/** @param log Log to write to, or 0 */
+/** @param cinema_kdms KDMs to email.
+ *  @param name_format Format to use for filenames.
+ *  @param name_values Values to substitute into the filenames.
+ *  @param cpl_name Name of the CPL that the KDMs are for.
+ *  @param log Log to write to, or 0.
+ */
 SendKDMEmailJob::SendKDMEmailJob (
        list<CinemaKDMs> cinema_kdms,
-       KDMNameFormat name_format,
-       NameFormat::Map name_values,
+       dcp::NameFormat name_format,
+       dcp::NameFormat::Map name_values,
        string cpl_name,
        shared_ptr<Log> log
        )
@@ -51,7 +56,7 @@ SendKDMEmailJob::SendKDMEmailJob (
 string
 SendKDMEmailJob::name () const
 {
-       NameFormat::Map::const_iterator i = _name_values.find ("film_name");
+       dcp::NameFormat::Map::const_iterator i = _name_values.find ('f');
        if (i == _name_values.end() || i->second.empty ()) {
                return _("Email KDMs");
        }