summaryrefslogtreecommitdiffstats
path: root/subsurface-core/imagedownloader.h
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-core/imagedownloader.h')
-rw-r--r--subsurface-core/imagedownloader.h34
1 files changed, 0 insertions, 34 deletions
diff --git a/subsurface-core/imagedownloader.h b/subsurface-core/imagedownloader.h
deleted file mode 100644
index f4e3df875..000000000
--- a/subsurface-core/imagedownloader.h
+++ /dev/null
@@ -1,34 +0,0 @@
-#ifndef IMAGEDOWNLOADER_H
-#define IMAGEDOWNLOADER_H
-
-#include <QImage>
-#include <QFuture>
-#include <QNetworkReply>
-
-typedef QPair<QString, QByteArray> SHashedFilename;
-
-extern QUrl cloudImageURL(const char *hash);
-
-
-class ImageDownloader : public QObject {
- Q_OBJECT;
-public:
- ImageDownloader(struct picture *picture);
- ~ImageDownloader();
- void load(bool fromHash);
-
-private:
- struct picture *picture;
- QNetworkAccessManager manager;
- bool loadFromHash;
-
-private slots:
- void saveImage(QNetworkReply *reply);
-};
-
-class SHashedImage : public QImage {
-public:
- SHashedImage(struct picture *picture);
-};
-
-#endif // IMAGEDOWNLOADER_H