summaryrefslogtreecommitdiff
path: root/src/lib/config.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-07-25 16:49:35 +0100
committerCarl Hetherington <cth@carlh.net>2017-07-25 16:49:35 +0100
commitc3e2b2051f4c50d92c7bbe59c42174984c2f3e54 (patch)
tree267ef4cde4d1c23424b3c0250d53063564e7fff3 /src/lib/config.h
parentbd12168f1381e8e5fb197e5f25cf716fcf012010 (diff)
First go at configurable config.xml location.
Diffstat (limited to 'src/lib/config.h')
-rw-r--r--src/lib/config.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/config.h b/src/lib/config.h
index 200857aa9..3317f1f10 100644
--- a/src/lib/config.h
+++ b/src/lib/config.h
@@ -629,6 +629,8 @@ public:
void write () const;
void write_config () const;
void write_cinemas () const;
+ void link (boost::filesystem::path new_file) const;
+ void copy_and_link (boost::filesystem::path new_file) const;
void save_template (boost::shared_ptr<const Film> film, std::string name) const;
bool existing_template (std::string name) const;
@@ -641,12 +643,11 @@ public:
static void drop ();
static void restore_defaults ();
static bool have_existing (std::string);
- static boost::filesystem::path config_path ();
+ static boost::filesystem::path config_file ();
private:
Config ();
static boost::filesystem::path path (std::string file, bool create_directories = true);
- static boost::filesystem::path target (boost::filesystem::path file);
void read ();
void set_defaults ();
void set_kdm_email_to_default ();