X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=blobdiff_plain;f=src%2Flib%2Fconfig.h;fp=src%2Flib%2Fconfig.h;h=05bc7945f1df80bb77c6f846d01c0a161ac80810;hp=3cfaa12007677a1c4f6939a9751ba4a127dee824;hb=7b2054e2a73844450b5b55c5788c02af671812ce;hpb=c497e601934e82425efef5dc981b12818a881990 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 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 Changed; @@ -482,7 +493,8 @@ private: /** maximum allowed J2K bandwidth in bits per second */ int _maximum_j2k_bandwidth; int _log_types; - + std::vector _history; + /** Singleton instance, or 0 */ static Config* _instance; };