Simple and optional messagebox notification when jobs finish.
[dcpomatic.git] / src / lib / config.h
index 2fca9699c786006d5819064ecb0acb4b1e5a49c5..1e16fc840a607814bd8fcef1891151cb2918a569 100644 (file)
@@ -381,6 +381,10 @@ public:
                return _decode_reduction;
        }
 
+       bool default_notify () const {
+               return _default_notify;
+       }
+
        /* SET (mostly) */
 
        void set_master_encoding_threads (int n) {
@@ -662,6 +666,10 @@ public:
                maybe_set (_decode_reduction, r);
        }
 
+       void set_default_notify (bool n) {
+               maybe_set (_default_notify, n);
+       }
+
        void clear_history () {
                _history.clear ();
                changed ();
@@ -721,7 +729,8 @@ public:
        static bool have_existing (std::string);
        static boost::filesystem::path config_file ();
 
-       static boost::optional<boost::filesystem::path> test_path;
+       /** 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 ();
@@ -849,6 +858,7 @@ private:
        boost::optional<DKDMWriteType> _last_dkdm_write_type;
        int _frames_in_memory_multiplier;
        boost::optional<int> _decode_reduction;
+       bool _default_notify;
 
        static int const _current_version;