X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fconfig.h;h=fc6315242b21d084ccdf94c696dbb039296d648e;hp=3e74a5049b8c0fdd5f86bdcbc7632514a02420a7;hb=89ae13638097f259f3e50b4b61068dd23451107d;hpb=7844347e7d89ffb256167192fb414c35d416e14d diff --git a/src/lib/config.h b/src/lib/config.h index 3e74a5049..fc6315242 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -327,6 +327,10 @@ public: return _preview_sound; } + std::string cover_sheet () const { + return _cover_sheet; + } + boost::optional preview_sound_output () const { return _preview_sound_output; } @@ -599,6 +603,12 @@ public: maybe_set (_nagged[nag], nagged); } + void set_cover_sheet (std::string s) { + maybe_set (_cover_sheet, s); + } + + void reset_cover_sheet (); + void changed (Property p = OTHER); boost::signals2::signal Changed; /** Emitted if read() failed on an existing Config file. There is nothing @@ -629,6 +639,7 @@ private: void read (); void set_defaults (); void set_kdm_email_to_default (); + void set_cover_sheet_to_default (); void read_cinemas (cxml::Document const & f); boost::shared_ptr create_certificate_chain (); boost::filesystem::path directory_or (boost::optional dir, boost::filesystem::path a) const; @@ -737,6 +748,7 @@ private: bool _preview_sound; /** name of a specific sound output stream to use for preview, or empty to use the default */ boost::optional _preview_sound_output; + std::string _cover_sheet; /** Singleton instance, or 0 */ static Config* _instance;