diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-05-09 11:24:03 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-05-09 11:24:03 +0100 |
| commit | 89ae13638097f259f3e50b4b61068dd23451107d (patch) | |
| tree | d58d8d0d10e5582b959ec41286943e6f4d81b8ac /src/lib/config.h | |
| parent | 7844347e7d89ffb256167192fb414c35d416e14d (diff) | |
Simple cover sheet support (#1039).
Diffstat (limited to 'src/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 12 |
1 files changed, 12 insertions, 0 deletions
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<std::string> 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<void (Property)> 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<dcp::CertificateChain> create_certificate_chain (); boost::filesystem::path directory_or (boost::optional<boost::filesystem::path> 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<std::string> _preview_sound_output; + std::string _cover_sheet; /** Singleton instance, or 0 */ static Config* _instance; |
