From fbefe34c306b9d2d8587e774eb586c83224be50f Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Mon, 26 Sep 2022 02:07:15 -0400 Subject: Add proper quit confirmation. --- xsig/include/signature_db.hpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'xsig/include') diff --git a/xsig/include/signature_db.hpp b/xsig/include/signature_db.hpp index 9b14fbb..23e3aae 100644 --- a/xsig/include/signature_db.hpp +++ b/xsig/include/signature_db.hpp @@ -45,7 +45,12 @@ public: signature_db(const fs::path &dbpath = fs::path()); ~signature_db(); + //true if db is valid, false if not. + //only useful when opening an existing db file bool valid(); + //true if db has changes that are not written to disk, false otherwise + //always true if db is not in RAM. + bool is_dirty(); //insert image signature into database //if id is omitted, it's assigned automatically and returned -- cgit v1.2.3