Basic release notes support (#2282).
[dcpomatic.git] / src / lib / config.h
index 9c3650f8d00af1d8cfb0f6f2b2ad1cf33136942a..9727bac1a16f0fc03398fa54c3643e0f3f255d57 100644 (file)
@@ -174,6 +174,10 @@ public:
                return _allow_96khz_audio;
        }
 
+       bool use_all_audio_channels () const {
+               return _use_all_audio_channels;
+       }
+
        bool show_experimental_audio_processors () const {
                return _show_experimental_audio_processors;
        }
@@ -582,6 +586,10 @@ public:
                return _auto_crop_threshold;
        }
 
+       boost::optional<std::string> last_release_notes_version () const {
+               return _last_release_notes_version;
+       }
+
        /* SET (mostly) */
 
        void set_master_encoding_threads (int n) {
@@ -669,6 +677,10 @@ public:
                maybe_set (_allow_96khz_audio, a);
        }
 
+       void set_use_all_audio_channels (bool a) {
+               maybe_set (_use_all_audio_channels, a);
+       }
+
        void set_show_experimental_audio_processors (bool e) {
                maybe_set (_show_experimental_audio_processors, e, SHOW_EXPERIMENTAL_AUDIO_PROCESSORS);
        }
@@ -1114,6 +1126,10 @@ public:
                maybe_set (_auto_crop_threshold, threshold, AUTO_CROP_THRESHOLD);
        }
 
+       void set_last_release_notes_version (std::string version) {
+               maybe_set (_last_release_notes_version, version);
+       }
+
        ExportConfig& export_config() {
                return _export;
        }
@@ -1230,6 +1246,7 @@ private:
        */
        bool _allow_any_container;
        bool _allow_96khz_audio;
+       bool _use_all_audio_channels;
        /** Offer the upmixers in the audio processor settings */
        bool _show_experimental_audio_processors;
        boost::optional<std::string> _language;
@@ -1340,6 +1357,7 @@ private:
        dcp::Formulation _default_kdm_type;
        RoughDuration _default_kdm_duration;
        double _auto_crop_threshold;
+       boost::optional<std::string> _last_release_notes_version;
 
        ExportConfig _export;