#ifndef IMAGEDOWNLOADER_H #define IMAGEDOWNLOADER_H #include #include #include typedef QPair SHashedFilename; 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 SHashedImage : public QImage { public: SHashedImage(struct picture *picture); }; #endif // IMAGEDOWNLOADER_H