diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-08-25 16:56:17 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-08-25 16:56:17 +0100 |
| commit | 7b2054e2a73844450b5b55c5788c02af671812ce (patch) | |
| tree | 5d5727a5bce89cdd32923c0c44841abd0585c8cb /src/lib/config.h | |
| parent | c497e601934e82425efef5dc981b12818a881990 (diff) | |
| parent | 7edf8e601ed2ede5b6758840fb9d8940393cf7e2 (diff) | |
Merge master.
Diffstat (limited to 'src/lib/config.h')
| -rw-r--r-- | src/lib/config.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/lib/config.h b/src/lib/config.h index 3cfaa1200..05bc7945f 100644 --- a/src/lib/config.h +++ b/src/lib/config.h @@ -221,7 +221,11 @@ public: int log_types () const { return _log_types; } - + + std::vector<boost::filesystem::path> history () const { + return _history; + } + /** @param n New number of local encoding threads */ void set_num_local_encoding_threads (int n) { _num_local_encoding_threads = n; @@ -414,6 +418,13 @@ public: _log_types = t; changed (); } + + void clear_history () { + _history.clear (); + changed (); + } + + void add_to_history (boost::filesystem::path p); void changed (); boost::signals2::signal<void ()> Changed; @@ -482,7 +493,8 @@ private: /** maximum allowed J2K bandwidth in bits per second */ int _maximum_j2k_bandwidth; int _log_types; - + std::vector<boost::filesystem::path> _history; + /** Singleton instance, or 0 */ static Config* _instance; }; |
