From 82c87204e48654a9b2661c68fe66b9f16f81c4ba Mon Sep 17 00:00:00 2001 From: "Robert C. Helling" Date: Sat, 9 Jan 2016 16:29:49 +0100 Subject: If all else fails try loading images from cloud server Of course, as of this writing, there are no images on the server. In addition, this patch adds comments to explain the by now convoluted image retrieval logic (local file, filename as URL, by hash, cloud server). Signed-off-by: Robert C. Helling Signed-off-by: Dirk Hohndel --- subsurface-core/imagedownloader.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'subsurface-core/imagedownloader.h') diff --git a/subsurface-core/imagedownloader.h b/subsurface-core/imagedownloader.h index fd6a91158..cd85c9509 100644 --- a/subsurface-core/imagedownloader.h +++ b/subsurface-core/imagedownloader.h @@ -7,11 +7,14 @@ typedef QPair SHashedFilename; +extern QUrl cloudImageURL(const char *hash); + + class ImageDownloader : public QObject { Q_OBJECT; public: ImageDownloader(struct picture *picture); - void load(); + void load(bool fromHash); private: struct picture *picture; -- cgit v1.2.3-70-g09d2