projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove use of Film in KDM stuff.
[dcpomatic.git]
/
src
/
lib
/
send_kdm_email_job.cc
diff --git
a/src/lib/send_kdm_email_job.cc
b/src/lib/send_kdm_email_job.cc
index 164dfe9875e4ec35a5578e8ff41f9132fe7eea7c..9ac5966927b9ed6caccbc3052d7039d14dcbed1b 100644
(file)
--- a/
src/lib/send_kdm_email_job.cc
+++ b/
src/lib/send_kdm_email_job.cc
@@
-20,7
+20,7
@@
#include "send_kdm_email_job.h"
#include "compose.hpp"
#include "film.h"
#include "send_kdm_email_job.h"
#include "compose.hpp"
#include "film.h"
-#include "
kdm
.h"
+#include "
cinema_kdms
.h"
#include "i18n.h"
#include "i18n.h"
@@
-29,16
+29,16
@@
using std::list;
using boost::shared_ptr;
SendKDMEmailJob::SendKDMEmailJob (
using boost::shared_ptr;
SendKDMEmailJob::SendKDMEmailJob (
- shared_ptr<const Film> f,
+ shared_ptr<const Film> f
ilm
,
list<shared_ptr<Screen> > screens,
list<shared_ptr<Screen> > screens,
- boost::filesystem::path
dcp
,
+ boost::filesystem::path
cpl
,
boost::posix_time::ptime from,
boost::posix_time::ptime to,
boost::posix_time::ptime from,
boost::posix_time::ptime to,
-
libdcp::KDM
::Formulation formulation
+
dcp
::Formulation formulation
)
)
- : Job (f)
+ : Job (f
ilm
)
, _screens (screens)
, _screens (screens)
- , _
dcp (dcp
)
+ , _
cpl (cpl
)
, _from (from)
, _to (to)
, _formulation (formulation)
, _from (from)
, _to (to)
, _formulation (formulation)
@@
-52,16
+52,30
@@
SendKDMEmailJob::name () const
return String::compose (_("Email KDMs for %1"), _film->name());
}
return String::compose (_("Email KDMs for %1"), _film->name());
}
+string
+SendKDMEmailJob::json_name () const
+{
+ return N_("send_kdm_email");
+}
+
void
SendKDMEmailJob::run ()
{
try {
void
SendKDMEmailJob::run ()
{
try {
-
+
set_progress_unknown ();
set_progress_unknown ();
- email_kdms (_film, _screens, _dcp, _from, _to, _formulation);
+
+ CinemaKDMs::email (
+ _film->name(),
+ _film->dcp_name(),
+ CinemaKDMs::collect (_film->make_kdms (_screens, _cpl, _from, _to, _formulation)),
+ _from,
+ _to
+ );
+
set_progress (1);
set_state (FINISHED_OK);
set_progress (1);
set_state (FINISHED_OK);
-
+
} catch (std::exception& e) {
set_progress (1);
} catch (std::exception& e) {
set_progress (1);