Changeset View
Changeset View
Standalone View
Standalone View
src/plugins/maps/KReportMapRenderer.h
Show All 17 Lines | |||||
18 | 18 | | |||
19 | #ifndef MAPRENDERER_H | 19 | #ifndef MAPRENDERER_H | ||
20 | #define MAPRENDERER_H | 20 | #define MAPRENDERER_H | ||
21 | 21 | | |||
22 | #include <marble/MarbleGlobal.h> | 22 | #include <marble/MarbleGlobal.h> | ||
23 | #include <marble/MarbleMap.h> | 23 | #include <marble/MarbleMap.h> | ||
24 | #include <marble/RenderState.h> | 24 | #include <marble/RenderState.h> | ||
25 | 25 | | |||
26 | #include <QTimer> | ||||
27 | | ||||
26 | #include "kreportplugin_debug.h" | 28 | #include "kreportplugin_debug.h" | ||
27 | 29 | | |||
28 | class KReportItemMaps; | 30 | class KReportItemMaps; | ||
29 | 31 | | |||
30 | class KReportMapRenderer : public QObject | 32 | class KReportMapRenderer : public QObject | ||
31 | { | 33 | { | ||
32 | Q_OBJECT | 34 | Q_OBJECT | ||
33 | Q_DISABLE_COPY(KReportMapRenderer) | 35 | Q_DISABLE_COPY(KReportMapRenderer) | ||
34 | public: | 36 | public: | ||
35 | KReportMapRenderer(QObject* parent = 0); | 37 | KReportMapRenderer(QObject* parent = 0); | ||
36 | virtual ~KReportMapRenderer(); | 38 | virtual ~KReportMapRenderer(); | ||
37 | void renderJob(KReportItemMaps* reportItemMaps); | 39 | void renderJob(KReportItemMaps* reportItemMaps); | ||
38 | Q_SIGNALS: | 40 | Q_SIGNALS: | ||
39 | void jobFinished(); | 41 | void jobFinished(); | ||
40 | private Q_SLOTS: | 42 | private Q_SLOTS: | ||
41 | void onRenderStatusChange(Marble::RenderStatus renderStatus); | 43 | void onRenderStatusChange(Marble::RenderStatus renderStatus); | ||
42 | void downloadProgres(int active, int queued); | 44 | void downloadProgres(int active, int queued); | ||
43 | void downloadFinished(); | 45 | void retryRender(); | ||
44 | 46 | | |||
45 | private: | 47 | private: | ||
46 | Marble::MarbleMap m_marble; | 48 | Marble::MarbleMap m_marble; | ||
47 | KReportItemMaps* m_currentJob; | 49 | KReportItemMaps* m_currentJob; | ||
50 | | ||||
51 | QTimer m_retryTimer; | ||||
48 | }; | 52 | }; | ||
49 | 53 | | |||
50 | #endif // MAPRENDERER_H | 54 | #endif // MAPRENDERER_H |