Basic and rather clumsy option to respect KDM validity windows.
[dcpomatic.git] / src / lib / config.h
index 58db9c2802175a728c29caa73e2f3c6a719534d7..c8ae32efd7bf02de3c66c252a971044b4722df49 100644 (file)
@@ -360,6 +360,8 @@ public:
                NAG_ENCRYPTED_METADATA,
                NAG_REMAKE_DECRYPTION_CHAIN,
                NAG_BAD_SIGNER_CHAIN,
+               /* Not really a nag but it's the same idea */
+               NAG_INITIAL_SETUP,
                NAG_COUNT
        };
 
@@ -457,6 +459,20 @@ public:
                return _interface_complexity;
        }
 
+       enum PlayerMode {
+               PLAYER_MODE_WINDOW,
+               PLAYER_MODE_FULL,
+               PLAYER_MODE_DUAL
+       };
+
+       PlayerMode player_mode () const {
+               return _player_mode;
+       }
+
+       bool respect_kdm_validity_periods () const {
+               return _respect_kdm_validity_periods;
+       }
+
        /* SET (mostly) */
 
        void set_master_encoding_threads (int n) {
@@ -855,6 +871,14 @@ public:
                maybe_set (_interface_complexity, i, INTERFACE_COMPLEXITY);
        }
 
+       void set_player_mode (PlayerMode m) {
+               maybe_set (_player_mode, m);
+       }
+
+       void set_respect_kdm_validity_periods (bool r) {
+               maybe_set (_respect_kdm_validity_periods, r);
+       }
+
        void changed (Property p = OTHER);
        boost::signals2::signal<void (Property)> Changed;
        /** Emitted if read() failed on an existing Config file.  There is nothing
@@ -1037,6 +1061,8 @@ private:
        boost::optional<std::string> _gdc_username;
        boost::optional<std::string> _gdc_password;
        Interface _interface_complexity;
+       PlayerMode _player_mode;
+       bool _respect_kdm_validity_periods;
 
        static int const _current_version;