summaryrefslogtreecommitdiffstats
path: root/qthelper.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-02-26 14:44:27 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-02-27 06:30:49 +0100
commite6482bbdc8a1359d51c70aaf847d3aac7895b960 (patch)
treeaab14f7043fd1d19d182578e7549f4d9a8da151f /qthelper.h
parentb02bf002a677e45dbaa4d28edadbaafc89a7badc (diff)
downloadsubsurface-e6482bbdc8a1359d51c70aaf847d3aac7895b960.tar.gz
UI to learn hashes of local image files
This addes a menu entry for the user to select a directory that is recursively traversed to look for image files and compute the hashes of those images (for those images to be available to be displayed in dives according to their hash values). This traversal and hash computation happens in and independend thread and so far the only feedback to the user is that upon completion the dispayed images are updated. Signed-off-by: Robert C. Helling <helling@atdotde.de> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qthelper.h')
-rw-r--r--qthelper.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/qthelper.h b/qthelper.h
index e164a41b6..8b553ba51 100644
--- a/qthelper.h
+++ b/qthelper.h
@@ -21,6 +21,7 @@ void read_hashes();
void write_hashes();
void updateHash(struct picture *picture);
QByteArray hashFile(const QString filename);
+void learnImages(const QDir dir, int max_recursions, bool recursed);
void add_hash(const QString filename, QByteArray &hash);
QString localFilePath(const QString originalFilename);
QString fileFromHash(char *hash);