summaryrefslogtreecommitdiffstats
path: root/qt-ui/divepicturewidget.h
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/divepicturewidget.h')
-rw-r--r--qt-ui/divepicturewidget.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/qt-ui/divepicturewidget.h b/qt-ui/divepicturewidget.h
index 506f85bf8..2ce228daf 100644
--- a/qt-ui/divepicturewidget.h
+++ b/qt-ui/divepicturewidget.h
@@ -5,6 +5,7 @@
#include <QListView>
#include <QThread>
#include <QFuture>
+#include <QNetworkReply>
typedef QPair<QString, QByteArray> SHashedFilename;
@@ -18,6 +19,18 @@ public:
SHashedImage(struct picture *picture);
};
+class ImageDownloader : public QObject {
+ Q_OBJECT;
+public:
+ ImageDownloader(struct picture *picture);
+ void load();
+private:
+ struct picture *picture;
+ QNetworkAccessManager manager;
+private slots:
+ void saveImage(QNetworkReply *reply);
+};
+
class DivePictureModel : public QAbstractTableModel {
Q_OBJECT
public: