summaryrefslogtreecommitdiffstats
path: root/qthelper.h
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2015-03-02 16:18:16 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-03-16 12:42:36 -0700
commit6b3b50cc2f8083ebbc013c1d270c1ec1d1252a23 (patch)
tree634abaf36f1908b24f6128c1c02c31b3eba6360e /qthelper.h
parent869ddc915daf4616ee2e010ab06fa7802b7e6d5f (diff)
downloadsubsurface-6b3b50cc2f8083ebbc013c1d270c1ec1d1252a23.tar.gz
Load remote images
When loading an image by filename and by hash fails, try to interpret the filename as URL and download the image. 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 113aee370..b0765aeda 100644
--- a/qthelper.h
+++ b/qthelper.h
@@ -25,4 +25,5 @@ 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