/* XXX: should probably get from/to from the KDMs themselves */
void
CinemaKDMs::email (
- string film_name, string cpl_name, list<CinemaKDMs> cinema_kdms, dcp::LocalTime from, dcp::LocalTime to, shared_ptr<Job> job, shared_ptr<Log> log
+ string film_name, string cpl_name, list<CinemaKDMs> cinema_kdms, dcp::LocalTime from, dcp::LocalTime to, shared_ptr<Log> log
)
{
Config* config = Config::instance ();
string const name = tidy_for_filename(i.cinema->name) + "_" + tidy_for_filename(film_name) + ".zip";
email.add_attachment (zip_file, name, "application/zip");
- email.send (job);
+ email.send ();
if (log) {
log->log (email.notes(), LogEntry::TYPE_DEBUG_EMAIL);
std::list<CinemaKDMs> cinema_kdms,
dcp::LocalTime from,
dcp::LocalTime to,
- boost::shared_ptr<Job> job,
boost::shared_ptr<Log> log
);
*/
#include "compose.hpp"
-#include "job.h"
#include "data.h"
#include "config.h"
#include "emailer.h"
}
void
-Emailer::send (shared_ptr<Job> job)
+Emailer::send ()
{
char date_buffer[32];
time_t now = time (0);
void add_bcc (std::string bcc);
void add_attachment (boost::filesystem::path file, std::string name, std::string mime_type);
- void send (boost::shared_ptr<Job> job);
+ void send ();
std::string notes () const {
return _notes;
SendKDMEmailJob::run ()
{
set_progress_unknown ();
- CinemaKDMs::email (_film_name, _cpl_name, _cinema_kdms, _from, _to, shared_from_this(), _log);
+ CinemaKDMs::email (_film_name, _cpl_name, _cinema_kdms, _from, _to, _log);
set_progress (1);
set_state (FINISHED_OK);
}
to.push_back ("carl@dcpomatic.com");
Emailer emailer (_from, to, "DCP-o-matic problem report", body);
- emailer.send (shared_from_this ());
+ emailer.send ();
set_progress (1);
}