summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeomappingmanager.cpp
diff options
context:
space:
mode:
authorDavid Laing <david.laing@nokia.com>2012-02-08 09:06:55 +1000
committerQt by Nokia <qt-info@nokia.com>2012-02-16 07:19:19 +0100
commitcdb80baa8386d11a0cbab8423ea956ae2393672f (patch)
treeb6679498ff4082d33ef1a0f7d8fd62d735bda5bd /src/location/maps/qgeomappingmanager.cpp
parent3288e355c1d96cd3ac70b0dc9a88ad73f2d94517 (diff)
downloadqtlocation-cdb80baa8386d11a0cbab8423ea956ae2393672f.tar.gz
Adds the camera capabilities class.
This class unifies access to the data related to what the valid range of camera parameters are for a given map plugin. Change-Id: I681eba4a8e1c1cbd34995ed1e97064ab194b1e40 Reviewed-by: Alex Wilson <alex.wilson@nokia.com>
Diffstat (limited to 'src/location/maps/qgeomappingmanager.cpp')
-rw-r--r--src/location/maps/qgeomappingmanager.cpp60
1 files changed, 4 insertions, 56 deletions
diff --git a/src/location/maps/qgeomappingmanager.cpp b/src/location/maps/qgeomappingmanager.cpp
index b562f3e3..3a318fbc 100644
--- a/src/location/maps/qgeomappingmanager.cpp
+++ b/src/location/maps/qgeomappingmanager.cpp
@@ -47,6 +47,7 @@
#include "qgeomap_p.h"
#include "qgeomap_p_p.h"
+#include "qgeocameracapabilities_p.h"
#include "qgeotilecache_p.h"
#include "qgeotilespec.h"
@@ -328,36 +329,6 @@ int QGeoMappingManager::tileSize() const
}
/*!
- Returns the minimum zoom level supported by this manager.
-
- Larger values of the zoom level correspond to more detailed views of the
- map.
-*/
-qreal QGeoMappingManager::minimumZoomLevel() const
-{
- return d_ptr->engine->minimumZoomLevel();
-}
-
-/*!
- Returns the maximum zoom level supported by this manager.
-
- Larger values of the zoom level correspond to more detailed views of the
- map.
-*/
-qreal QGeoMappingManager::maximumZoomLevel() const
-{
- return d_ptr->engine->maximumZoomLevel();
-}
-
-/*!
- Return whether bearing is supported by this manager.
-*/
-bool QGeoMappingManager::supportsBearing() const
-{
- return d_ptr->engine->supportsBearing();
-}
-
-/*!
Return whether the manager has been initialized
(will be done automatically but may take some time).
@@ -367,35 +338,12 @@ bool QGeoMappingManager::isInitialized() const
return d_ptr->engine->isInitialized();
}
-
-/*!
- Return whether tilting is supported by this manager.
-*/
-bool QGeoMappingManager::supportsTilting() const
-{
- return d_ptr->engine->supportsTilting();
-}
-
/*!
- Returns minimum tilt supported by this manager.
-
- Value in degrees where 0 is equivalent to 90 degrees between view and earth's
- surface i.e. looking straight down to earth.
-*/
-qreal QGeoMappingManager::minimumTilt() const
-{
- return d_ptr->engine->minimumTilt();
-}
-
-/*!
- Returns maximum tilt supported by this manager.
-
- Value in degrees where 0 is equivalent to 90 degrees between view and earth's
- surface i.e. looking straight down to earth.
+ Returns the camera capabilities supported by this manager.
*/
-qreal QGeoMappingManager::maximumTilt() const
+QGeoCameraCapabilities QGeoMappingManager::cameraCapabilities() const
{
- return d_ptr->engine->maximumTilt();
+ return d_ptr->engine->cameraCapabilities();
}
/*!