Fix typo in log message.
[dcpomatic.git] / src / lib / config.h
index 9727bac1a16f0fc03398fa54c3643e0f3f255d57..8fbdeaf9584ffe9f9aa85c9084b2fd867aa80bb9 100644 (file)
@@ -1130,6 +1130,10 @@ public:
                maybe_set (_last_release_notes_version, version);
        }
 
+       void unset_last_release_notes_version() {
+               maybe_set(_last_release_notes_version, boost::optional<std::string>());
+       }
+
        ExportConfig& export_config() {
                return _export;
        }
@@ -1139,7 +1143,12 @@ public:
        /** Emitted if read() failed on an existing Config file.  There is nothing
            a listener can do about it: this is just for information.
        */
-       static boost::signals2::signal<void ()> FailedToLoad;
+       enum class LoadFailure {
+               CONFIG,
+               CINEMAS,
+               DKDM_RECIPIENTS
+       };
+       static boost::signals2::signal<void (LoadFailure)> FailedToLoad;
        /** Emitted if read() issued a warning which the user might want to know about */
        static boost::signals2::signal<void (std::string)> Warning;
        /** Emitted if there is a something wrong the contents of our config.  Handler can call
@@ -1200,6 +1209,9 @@ public:
 private:
        Config ();
        void read () override;
+       void read_config();
+       void read_cinemas();
+       void read_dkdm_recipients();
        void set_defaults ();
        void set_kdm_email_to_default ();
        void set_notification_email_to_default ();