diff options
Diffstat (limited to 'core/imagedownloader.h')
-rw-r--r-- | core/imagedownloader.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/core/imagedownloader.h b/core/imagedownloader.h index 2a3d95df4..337185869 100644 --- a/core/imagedownloader.h +++ b/core/imagedownloader.h @@ -9,16 +9,15 @@ class ImageDownloader : public QObject { Q_OBJECT public: - ImageDownloader(struct picture *picture); - ~ImageDownloader(); + ImageDownloader(const QString &filename); void load(bool fromHash); private: bool loadFromUrl(const QUrl &); // return true on success void saveImage(QNetworkReply *reply, bool &success); - struct picture *picture; + QString filename; }; -QImage getHashedImage(struct picture *picture); +QImage getHashedImage(const QString &filename); #endif // IMAGEDOWNLOADER_H |