diff options
| author | Carl Hetherington <cth@carlh.net> | 2012-11-04 21:54:22 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2012-11-04 21:54:22 +0000 |
| commit | b002ffea0b98dd41ba4806d42d0244554e412ee7 (patch) | |
| tree | bd07de3db3530cd7c539cac1a51ef436ab7c29a3 /src/lib/config.h | |
| parent | 0801b4163c1c66061692fe24ef39cfffdfda462e (diff) | |
Add option to specify default film directory.
Diffstat (limited to 'src/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/config.h b/src/lib/config.h index 1ded015f2..59af8a07a 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -46,6 +46,12 @@ public: return _num_local_encoding_threads; } + std::string default_directory () const { + return _default_directory; + } + + std::string default_directory_or (std::string a) const; + /** @return port to use for J2K encoding servers */ int server_port () const { return _server_port; @@ -111,6 +117,11 @@ public: Changed (); } + void set_default_directory (std::string d) { + _default_directory = d; + Changed (); + } + /** @param p New server port */ void set_server_port (int p) { _server_port = p; @@ -186,6 +197,8 @@ private: /** number of threads to use for J2K encoding on the local machine */ int _num_local_encoding_threads; + /** default directory to put new films in */ + std::string _default_directory; /** port to use for J2K encoding servers */ int _server_port; /** index of colour LUT to use when converting RGB to XYZ |
