summaryrefslogblamecommitdiffstats
path: root/qt-ui/divepicturewidget.h
blob: 54f5bb826a0326595e4aa1ef649c6b0b81aa30af (plain) (tree)
1
2
3
4
5
6
7
8
9


                              
                    
                  
                        
 









                                                 
 
                                            
                
                                           



                                                        

                                                   
  
      
#ifndef DIVEPICTUREWIDGET_H
#define DIVEPICTUREWIDGET_H

#include <QAbstractTableModel>
#include <QListView>
#include <QThread>
#include <QFuture>
#include <QNetworkReply>

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 DivePictureWidget : public QListView {
	Q_OBJECT
public:
	DivePictureWidget(QWidget *parent);
signals:
	void photoDoubleClicked(const QString filePath);
private
slots:
	void doubleClicked(const QModelIndex &index);
};

class DivePictureThumbnailThread : public QThread {
};

#endif