X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Ftranscode_job.h;h=368a9b685117ff6425e0a43207032a05450e960e;hp=030e22bef092dea8bc67b794bea4bef8668a042f;hb=a2e41d9a95b6e0000f3a54f513214130f8b6ca9f;hpb=4ee083dc0862b30325c709e913772a6898378d0e diff --git a/src/lib/transcode_job.h b/src/lib/transcode_job.h index 030e22bef..368a9b685 100644 --- a/src/lib/transcode_job.h +++ b/src/lib/transcode_job.h @@ -19,6 +19,10 @@ */ +#ifndef DCPOMATIC_TRANSCODE_JOB_H +#define DCPOMATIC_TRANSCODE_JOB_H + + /** @file src/transcode_job.h * @brief A job which transcodes from one format to another. */ @@ -27,6 +31,10 @@ #include "job.h" +/* Defined by Windows */ +#undef IGNORE + + class Encoder; @@ -36,7 +44,13 @@ class Encoder; class TranscodeJob : public Job { public: - explicit TranscodeJob (std::shared_ptr film); + enum class ChangedBehaviour { + EXAMINE_THEN_STOP, + STOP, + IGNORE + }; + + explicit TranscodeJob (std::shared_ptr film, ChangedBehaviour changed); ~TranscodeJob (); std::string name () const override; @@ -50,4 +64,9 @@ private: int remaining_time () const override; std::shared_ptr _encoder; + ChangedBehaviour _changed; }; + + +#endif +