From 2e7924a07d45c1d1468552f951dcd2f2dcc948fa Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Mon, 26 Sep 2022 22:14:18 -0400 Subject: Add a few basic settings items. Yes I stole qmp's settings design and silently relicensed the (largely identical) code. But who in the world cares, plus I'm the author of qmp anyway. --- qdeduper/sigdb_qt.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'qdeduper/sigdb_qt.hpp') diff --git a/qdeduper/sigdb_qt.hpp b/qdeduper/sigdb_qt.hpp index 1672915..39b57b7 100644 --- a/qdeduper/sigdb_qt.hpp +++ b/qdeduper/sigdb_qt.hpp @@ -22,6 +22,7 @@ private: std::unordered_map frmap; std::map, double> distmap; std::vector> groups; + populate_cfg_t cfg; void create_priv_struct(); public: @@ -32,7 +33,10 @@ public: bool valid(); bool is_dirty(); - void scan_files(const std::vector &files, int njobs); + populate_cfg_t get_sig_config(); + void set_sig_config(populate_cfg_t cfg); + + void scan_files(const std::vector &files); void interrupt_scan(); std::vector> search_file(const fs::path &files); -- cgit v1.2.3