summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeotiledmap_p_p.h
diff options
context:
space:
mode:
authorMichal Klocek <michal.klocek@theqtcompany.com>2015-04-13 16:50:12 +0200
committerMichal Klocek <michal.klocek@theqtcompany.com>2015-05-05 13:03:04 +0000
commit4fb86e6d29a13d61ac04a302e4d312de349115f8 (patch)
tree1d8e2f55a555324b297520c783d973681415c894 /src/location/maps/qgeotiledmap_p_p.h
parentcbe2583de456f18ddd2e4e5d2da225935aac1475 (diff)
downloadqtlocation-4fb86e6d29a13d61ac04a302e4d312de349115f8.tar.gz
Fixes PIMPL in QGeoTiledMap.
This commit makes following changes: * QGeoTiledMapPrivate is now a subclass of QGeoMapPrivate. * makes QGeoMap constructor private. * change visibility of setCameraData in QGeoMap, so that only QGeoMapController can modify the camera data. * moves mapResized,changeCameraData,changeActiveMapType to private implementation interface. * moves mapVersion member function to base class. Change-Id: I336e7f72b03e845e09e445a6eebad90b2e46dbd1 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/location/maps/qgeotiledmap_p_p.h')
-rw-r--r--src/location/maps/qgeotiledmap_p_p.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/location/maps/qgeotiledmap_p_p.h b/src/location/maps/qgeotiledmap_p_p.h
index bdd5f9f4..8f2999ef 100644
--- a/src/location/maps/qgeotiledmap_p_p.h
+++ b/src/location/maps/qgeotiledmap_p_p.h
@@ -47,6 +47,7 @@
// We mean it.
//
+#include "qgeomap_p_p.h"
#include "qgeocameradata_p.h"
#include "qgeomaptype_p.h"
#include <QtPositioning/private/qdoublevector3d_p.h>
@@ -65,18 +66,15 @@ class QGeoTileSpec;
class QSGNode;
class QQuickWindow;
-class QGeoTiledMapPrivate
+class QGeoTiledMapPrivate : public QGeoMapPrivate
{
+ Q_DECLARE_PUBLIC(QGeoTiledMap)
public:
- QGeoTiledMapPrivate(QGeoTiledMap *parent, QGeoTiledMappingManagerEngine *engine);
+ QGeoTiledMapPrivate(QGeoTiledMappingManagerEngine *engine);
~QGeoTiledMapPrivate();
- QGeoTileCache *tileCache();
-
QSGNode *updateSceneGraph(QSGNode *node, QQuickWindow *window);
- void changeCameraData(const QGeoCameraData &oldCameraData);
- void changeActiveMapType(const QGeoMapType mapType);
void changeMapVersion(int mapVersion);
void resized(int width, int height);
@@ -87,18 +85,21 @@ public:
QSet<QGeoTileSpec> visibleTiles();
void prefetchTiles();
- QPointer<QGeoTiledMappingManagerEngine> engine() const;
+
+protected:
+ void mapResized(int width, int height) Q_DECL_OVERRIDE;
+ void changeCameraData(const QGeoCameraData &oldCameraData) Q_DECL_OVERRIDE;
+ void changeActiveMapType(const QGeoMapType mapType) Q_DECL_OVERRIDE;
private:
- QGeoTiledMap *m_map;
QGeoTileCache *m_cache;
+ //TODO: fix base pointer
QPointer<QGeoTiledMappingManagerEngine> m_engine;
QGeoCameraTiles *m_cameraTiles;
QGeoMapScene *m_mapScene;
- Q_DISABLE_COPY(QGeoTiledMapPrivate)
-public:
QGeoTileRequestManager *m_tileRequests;
+ Q_DISABLE_COPY(QGeoTiledMapPrivate)
};
QT_END_NAMESPACE