X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fsend_problem_report_job.cc;h=cff1c8e9f873ad179816a31d013c116b1a9b4135;hb=a5d004b0773f633401528392fc28e66d70e13ac8;hp=c8b577ca774ae9d2a9b742c96e37d4e8e2f5a0de;hpb=fc7b0336a32ec10af9561f351dba4787ca5e0dd2;p=dcpomatic.git diff --git a/src/lib/send_problem_report_job.cc b/src/lib/send_problem_report_job.cc index c8b577ca7..cff1c8e9f 100644 --- a/src/lib/send_problem_report_job.cc +++ b/src/lib/send_problem_report_job.cc @@ -28,15 +28,17 @@ #include "emailer.h" #include "environment_info.h" #include -#include #include "i18n.h" using std::string; using std::list; -using boost::shared_ptr; +using std::shared_ptr; -/** @param film Film thta the problem is with, or 0 */ +/** @param film Film thta the problem is with, or 0. + * @param from Email address to use for From: + * @param summary Summary of the problem. + */ SendProblemReportJob::SendProblemReportJob ( shared_ptr film, string from, @@ -49,6 +51,11 @@ SendProblemReportJob::SendProblemReportJob ( } +SendProblemReportJob::~SendProblemReportJob () +{ + stop_thread (); +} + string SendProblemReportJob::name () const { @@ -75,7 +82,7 @@ SendProblemReportJob::run () body += "Version: " + string (dcpomatic_version) + " " + string (dcpomatic_git_commit) + "\n\n"; - BOOST_FOREACH (string i, environment_info ()) { + for (auto i: environment_info ()) { body += i + "\n"; } @@ -98,7 +105,7 @@ SendProblemReportJob::run () to.push_back ("carl@dcpomatic.com"); Emailer emailer (_from, to, "DCP-o-matic problem report", body); - emailer.send ("main.carlh.net", 2525); + emailer.send ("main.carlh.net", 2525, EMAIL_PROTOCOL_STARTTLS); set_progress (1); set_state (FINISHED_OK);