summaryrefslogtreecommitdiffstats
path: root/qthelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'qthelper.h')
-rw-r--r--qthelper.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/qthelper.h b/qthelper.h
index ccc57bc93..b0765aeda 100644
--- a/qthelper.h
+++ b/qthelper.h
@@ -7,14 +7,23 @@
#include "dive.h"
#include "divelist.h"
#include <QTranslator>
+#include <QDir>
// global pointers for our translation
extern QTranslator *qtTranslator, *ssrfTranslator;
QString weight_string(int weight_in_grams);
bool gpsHasChanged(struct dive *dive, struct dive *master, const QString &gps_text, bool *parsed_out = 0);
-QString printGPSCoords(int lat, int lon);
+extern "C" const char *printGPSCoords(int lat, int lon);
QList<int> getDivesInTrip(dive_trip_t *trip);
QString gasToStr(struct gasmix gas);
-
+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);
+void learnHash(struct picture *picture, QByteArray hash);
#endif // QTHELPER_H