Changeset View
Changeset View
Standalone View
Standalone View
dataengines/potd/noaaprovider.h
Show All 24 Lines | |||||
25 | #include "potdprovider.h" | 25 | #include "potdprovider.h" | ||
26 | // Qt | 26 | // Qt | ||
27 | #include <QImage> | 27 | #include <QImage> | ||
28 | 28 | | |||
29 | class KJob; | 29 | class KJob; | ||
30 | 30 | | |||
31 | /** | 31 | /** | ||
32 | * This class provides the image for NOAA Environmental Visualization Laboratory | 32 | * This class provides the image for NOAA Environmental Visualization Laboratory | ||
33 | * Picture Of the Day | 33 | * Image Of the Day | ||
34 | * located at http://www.nnvl.noaa.gov/imageoftheday.php. | 34 | * located at http://www.nesdis.noaa.gov/content/imagery-and-data. | ||
35 | */ | 35 | */ | ||
36 | class NOAAProvider : public PotdProvider | 36 | class NOAAProvider : public PotdProvider | ||
37 | { | 37 | { | ||
38 | Q_OBJECT | 38 | Q_OBJECT | ||
39 | 39 | | |||
40 | public: | 40 | public: | ||
41 | /** | 41 | /** | ||
42 | * Creates a new NOAA provider. | 42 | * Creates a new NOAA provider. | ||
Show All 12 Lines | |||||
55 | * Returns the requested image. | 55 | * Returns the requested image. | ||
56 | * | 56 | * | ||
57 | * Note: This method returns only a valid image after the | 57 | * Note: This method returns only a valid image after the | ||
58 | * finished() signal has been emitted. | 58 | * finished() signal has been emitted. | ||
59 | */ | 59 | */ | ||
60 | QImage image() const override; | 60 | QImage image() const override; | ||
61 | 61 | | |||
62 | private: | 62 | private: | ||
63 | void pageRequestFinished(KJob *job); | 63 | void firstPageRequestFinished(KJob *job); | ||
64 | void secondPageRequestFinished(KJob *job); | ||||
64 | void imageRequestFinished(KJob *job); | 65 | void imageRequestFinished(KJob *job); | ||
65 | 66 | | |||
66 | private: | 67 | private: | ||
67 | QImage mImage; | 68 | QImage mImage; | ||
68 | }; | 69 | }; | ||
69 | 70 | | |||
70 | #endif | 71 | #endif |