enum Property {
USE_ANY_SERVERS,
SERVERS,
+ CINEMAS,
OTHER
};
return _confirm_kdm_email;
}
+ dcp::NameFormat kdm_container_name_format () const {
+ return _kdm_container_name_format;
+ }
+
dcp::NameFormat kdm_filename_format () const {
return _kdm_filename_format;
}
return _dcp_asset_filename_format;
}
+ bool jump_to_selected () const {
+ return _jump_to_selected;
+ }
+
/** @param n New number of local encoding threads */
void set_num_local_encoding_threads (int n) {
maybe_set (_num_local_encoding_threads, n);
void add_cinema (boost::shared_ptr<Cinema> c) {
_cinemas.push_back (c);
- changed ();
+ changed (CINEMAS);
}
void remove_cinema (boost::shared_ptr<Cinema> c) {
_cinemas.remove (c);
- changed ();
+ changed (CINEMAS);
}
void set_allowed_dcp_frame_rates (std::list<int> const & r) {
maybe_set (_confirm_kdm_email, s);
}
+ void set_kdm_container_name_format (dcp::NameFormat n) {
+ maybe_set (_kdm_container_name_format, n);
+ }
+
void set_kdm_filename_format (dcp::NameFormat n) {
maybe_set (_kdm_filename_format, n);
}
void add_to_history (boost::filesystem::path p);
+ void set_jump_to_selected (bool j) {
+ maybe_set (_jump_to_selected, j);
+ }
+
void changed (Property p = OTHER);
boost::signals2::signal<void (Property)> Changed;
- /** Emitted if ::read() failed on an existing Config file. There is nothing
+ /** 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;
void write () const;
+ void write_config () const;
+ void write_cinemas () const;
void save_template (boost::shared_ptr<const Film> film, std::string name) const;
bool existing_template (std::string name) const;
void read ();
void set_defaults ();
void set_kdm_email_to_default ();
- void write_config_xml () const;
- void write_cinemas_xml () const;
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;
bool _show_hints_before_make_dcp;
bool _confirm_kdm_email;
dcp::NameFormat _kdm_filename_format;
+ dcp::NameFormat _kdm_container_name_format;
dcp::NameFormat _dcp_metadata_filename_format;
dcp::NameFormat _dcp_asset_filename_format;
+ bool _jump_to_selected;
/** Singleton instance, or 0 */
static Config* _instance;