#define DCPOMATIC_CONFIG_H
#include "isdcf_metadata.h"
-#include "kdm_filename_format.h"
#include "types.h"
-#include <dcp/filename_format.h>
+#include <dcp/name_format.h>
#include <dcp/certificate_chain.h>
#include <dcp/encrypted_kdm.h>
#include <boost/shared_ptr.hpp>
class DCPContentType;
class Ratio;
class Cinema;
+class Film;
/** @class Config
* @brief A singleton class holding configuration.
return _show_hints_before_make_dcp;
}
- KDMFilenameFormat kdm_filename_format () const {
+ dcp::NameFormat kdm_filename_format () const {
return _kdm_filename_format;
}
- dcp::FilenameFormat dcp_filename_format () const {
- return _dcp_filename_format;
+ dcp::NameFormat dcp_metadata_filename_format () const {
+ return _dcp_metadata_filename_format;
+ }
+
+ dcp::NameFormat dcp_asset_filename_format () const {
+ return _dcp_asset_filename_format;
}
/** @param n New number of local encoding threads */
maybe_set (_show_hints_before_make_dcp, s);
}
- void set_kdm_filename_format (KDMFilenameFormat n) {
+ void set_kdm_filename_format (dcp::NameFormat n) {
maybe_set (_kdm_filename_format, n);
}
- void set_dcp_filename_format (dcp::FilenameFormat n) {
- maybe_set (_dcp_filename_format, n);
+ void set_dcp_metadata_filename_format (dcp::NameFormat n) {
+ maybe_set (_dcp_metadata_filename_format, n);
+ }
+
+ void set_dcp_asset_filename_format (dcp::NameFormat n) {
+ maybe_set (_dcp_asset_filename_format, n);
}
void clear_history () {
void write () const;
+ void save_template (boost::shared_ptr<const Film> film, std::string name) const;
+ bool existing_template (std::string name) const;
+ std::list<std::string> templates () const;
+ boost::filesystem::path template_path (std::string name) const;
+ void rename_template (std::string old_name, std::string new_name) const;
+ void delete_template (std::string name) const;
+
static Config* instance ();
static void drop ();
static void restore_defaults ();
std::vector<dcp::EncryptedKDM> _dkdms;
boost::filesystem::path _cinemas_file;
bool _show_hints_before_make_dcp;
- KDMFilenameFormat _kdm_filename_format;
- dcp::FilenameFormat _dcp_filename_format;
+ dcp::NameFormat _kdm_filename_format;
+ dcp::NameFormat _dcp_metadata_filename_format;
+ dcp::NameFormat _dcp_asset_filename_format;
/** Singleton instance, or 0 */
static Config* _instance;