VerifyDCPJob::VerifyDCPJob(vector<boost::filesystem::path> directories, vector<boost::filesystem::path> kdms)
- , _directories (directories)
: Job({})
+ , _directories(directories)
, _kdms(kdms)
{
}
-VerifyDCPJob::~VerifyDCPJob ()
+VerifyDCPJob::~VerifyDCPJob()
{
- stop_thread ();
+ stop_thread();
}
string
-VerifyDCPJob::name () const
+VerifyDCPJob::name() const
{
return _("Verify DCP");
}
string
-VerifyDCPJob::json_name () const
+VerifyDCPJob::json_name() const
{
return N_("verify_dcp");
}
void
-VerifyDCPJob::update_stage (string s, optional<boost::filesystem::path> path)
+VerifyDCPJob::update_stage(string s, optional<boost::filesystem::path> path)
{
if (path) {
s += ": " + path->string();
}
- sub (s);
+ sub(s);
}
void
-VerifyDCPJob::run ()
+VerifyDCPJob::run()
{
vector<dcp::DecryptedKDM> decrypted_kdms;
auto key = Config::instance()->decryption_chain()->key();
}
}
- set_progress (1);
- set_state (failed ? FINISHED_ERROR : FINISHED_OK);
+ set_progress(1);
+ set_state(failed ? FINISHED_ERROR : FINISHED_OK);
}
{
public:
VerifyDCPJob(std::vector<boost::filesystem::path> directories, std::vector<boost::filesystem::path> kdms);
- ~VerifyDCPJob ();
+ ~VerifyDCPJob();
- std::string name () const override;
- std::string json_name () const override;
- void run () override;
+ std::string name() const override;
+ std::string json_name() const override;
+ void run() override;
dcp::VerificationResult const& result() const {
return _result;
}
private:
- void update_stage (std::string s, boost::optional<boost::filesystem::path> path);
+ void update_stage(std::string s, boost::optional<boost::filesystem::path> path);
std::vector<boost::filesystem::path> _directories;
std::vector<boost::filesystem::path> _kdms;