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 <helling@atdotde.de>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Robert C. Helling 2016-01-09 16:29:49 +01:00 committed by Dirk Hohndel
parent 3ae6326847
commit 82c87204e4
2 changed files with 36 additions and 13 deletions

View file

@ -7,11 +7,14 @@
typedef QPair<QString, QByteArray> 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;