Fix non-variant build.
[dcpomatic.git] / src / lib / config.h
index a470bf391ab02bdefed27c1d9cf81b7d08e3e261..011906a410abf9d1a5477f8a45a54e97c792033e 100644 (file)
@@ -78,6 +78,7 @@ public:
                SOUND_OUTPUT,
                INTERFACE_COMPLEXITY,
                PLAYER_DCP_DIRECTORY,
+               HISTORY,
 #ifdef DCPOMATIC_VARIANT_SWAROOP
                PLAYER_BACKGROUND_IMAGE,
 #endif
@@ -520,6 +521,10 @@ public:
        }
 #endif
 
+       bool allow_spl_editing () const {
+               return _allow_spl_editing;
+       }
+
        /* SET (mostly) */
 
        void set_master_encoding_threads (int n) {
@@ -1000,6 +1005,10 @@ public:
        }
 #endif
 
+       void set_allow_spl_editing (bool s) {
+               maybe_set (_allow_spl_editing, s);
+       }
+
        void changed (Property p = OTHER);
        boost::signals2::signal<void (Property)> Changed;
        /** Emitted if read() failed on an existing Config file.  There is nothing
@@ -1032,13 +1041,13 @@ public:
        static void restore_defaults ();
        static bool have_existing (std::string);
        static boost::filesystem::path config_file ();
+       static boost::filesystem::path path (std::string file, bool create_directories = true);
 
        /** If set, this overrides the standard path (in home, Library, AppData or wherever) for config.xml and cinemas.xml */
        static boost::optional<boost::filesystem::path> override_path;
 
 private:
        Config ();
-       static boost::filesystem::path path (std::string file, bool create_directories = true);
        void read ();
        void set_defaults ();
        void set_kdm_email_to_default ();
@@ -1203,6 +1212,7 @@ private:
        int _player_watermark_duration;
        std::vector<Monitor> _required_monitors;
 #endif
+       bool _allow_spl_editing;
 
        static int const _current_version;