mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
3ae6326847
commit
82c87204e4
2 changed files with 36 additions and 13 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue