aboutsummaryrefslogtreecommitdiff
path: root/qdeduper/sigdb_qt.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-26 22:14:18 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2022-09-26 22:17:44 -0400
commit2e7924a07d45c1d1468552f951dcd2f2dcc948fa (patch)
tree24b6788b505a82f70f7dd82f8d9f1570fc88fef1 /qdeduper/sigdb_qt.hpp
parent43a058c0957bec3fc564a7a019bdc03829e32e70 (diff)
downloaddeduper-2e7924a07d45c1d1468552f951dcd2f2dcc948fa.tar.xz
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.
Diffstat (limited to 'qdeduper/sigdb_qt.hpp')
-rw-r--r--qdeduper/sigdb_qt.hpp6
1 files changed, 5 insertions, 1 deletions
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<fs::path, size_t> frmap;
std::map<std::pair<size_t, size_t>, double> distmap;
std::vector<std::vector<size_t>> 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<fs::path> &files, int njobs);
+ populate_cfg_t get_sig_config();
+ void set_sig_config(populate_cfg_t cfg);
+
+ void scan_files(const std::vector<fs::path> &files);
void interrupt_scan();
std::vector<std::pair<size_t, double>> search_file(const fs::path &files);