mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-01 06:30:26 +00:00
8f4604ead8
Remove a semicolon after Q_OBJECT and a few others after the closing braces of while loops. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
28 lines
637 B
C++
28 lines
637 B
C++
// SPDX-License-Identifier: GPL-2.0
|
|
#ifndef IMAGEDOWNLOADER_H
|
|
#define IMAGEDOWNLOADER_H
|
|
|
|
#include <QImage>
|
|
#include <QFuture>
|
|
#include <QNetworkReply>
|
|
|
|
class ImageDownloader : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
ImageDownloader(struct picture *picture);
|
|
~ImageDownloader();
|
|
void load(bool fromHash);
|
|
|
|
private:
|
|
bool loadFromUrl(const QUrl &); // return true on success
|
|
void saveImage(QNetworkReply *reply, bool &success);
|
|
struct picture *picture;
|
|
};
|
|
|
|
class SHashedImage : public QImage {
|
|
bool load(const QString &fileName, const char *format=nullptr);
|
|
public:
|
|
SHashedImage(struct picture *picture);
|
|
};
|
|
|
|
#endif // IMAGEDOWNLOADER_H
|