summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeomappingmanagerengine.cpp
diff options
context:
space:
mode:
authorDavid Laing <david.laing@nokia.com>2012-01-04 11:52:21 +1000
committerQt by Nokia <qt-info@nokia.com>2012-01-05 07:05:08 +0100
commit7c2dc2cb57e426bbf8a37cfba988df7a964c5e94 (patch)
treed484b9167194881918174698d40d8d13af2313ae /src/location/maps/qgeomappingmanagerengine.cpp
parentc9de94f6e4013744e03f93ece7fa960cf500eb12 (diff)
downloadqtlocation-7c2dc2cb57e426bbf8a37cfba988df7a964c5e94.tar.gz
Renames the new mapping classes.
Also moves them into src/location/maps. We still need to take a closer look at which classes are public and which are private, and then do the associated file renaming and addition of private header warnings. Change-Id: Ide0225ad5d5dc23834baaa9f6841646e4c92de39 Reviewed-by: Juha Vuolle <juha.vuolle@nokia.com>
Diffstat (limited to 'src/location/maps/qgeomappingmanagerengine.cpp')
-rw-r--r--src/location/maps/qgeomappingmanagerengine.cpp26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/location/maps/qgeomappingmanagerengine.cpp b/src/location/maps/qgeomappingmanagerengine.cpp
index a79db933..a03e7994 100644
--- a/src/location/maps/qgeomappingmanagerengine.cpp
+++ b/src/location/maps/qgeomappingmanagerengine.cpp
@@ -42,7 +42,7 @@
#include "qgeomappingmanagerengine.h"
#include "qgeomappingmanagerengine_p.h"
#include "qgeotiledmapreply.h"
-#include "tilespec.h"
+#include "qgeotilespec.h"
#include <QThread>
#include <QNetworkProxy>
@@ -155,8 +155,8 @@ void QGeoMappingManagerEngine::threadFinished()
this->deleteLater();
}
-void QGeoMappingManagerEngine::updateTileRequests(const QSet<TileSpec> &tilesAdded,
- const QSet<TileSpec> &tilesRemoved)
+void QGeoMappingManagerEngine::updateTileRequests(const QSet<QGeoTileSpec> &tilesAdded,
+ const QSet<QGeoTileSpec> &tilesRemoved)
{
Q_D(QGeoMappingManagerEngine);
@@ -171,11 +171,11 @@ void QGeoMappingManagerEngine::updateTileRequests(const QSet<TileSpec> &tilesAdd
d->timer_->start();
}
-void QGeoMappingManagerEngine::cancelTileRequests(const QSet<TileSpec> &tiles)
+void QGeoMappingManagerEngine::cancelTileRequests(const QSet<QGeoTileSpec> &tiles)
{
Q_D(QGeoMappingManagerEngine);
- typedef QSet<TileSpec>::const_iterator tile_iter;
+ typedef QSet<QGeoTileSpec>::const_iterator tile_iter;
tile_iter tile = tiles.constBegin();
tile_iter end = tiles.constEnd();
for (; tile != end; ++tile) {
@@ -204,7 +204,7 @@ void QGeoMappingManagerEngine::requestNextTile()
return;
}
- TileSpec ts = d->queue_.takeFirst();
+ QGeoTileSpec ts = d->queue_.takeFirst();
QGeoTiledMapReply *reply = getTileImage(ts);
@@ -231,7 +231,7 @@ void QGeoMappingManagerEngine::finished()
if (!reply)
return;
- TileSpec spec = reply->tileSpec();
+ QGeoTileSpec spec = reply->tileSpec();
if (!d->invmap_.contains(spec)) {
reply->deleteLater();
@@ -243,7 +243,7 @@ void QGeoMappingManagerEngine::finished()
handleReply(reply, spec);
}
-void QGeoMappingManagerEngine::handleReply(QGeoTiledMapReply *reply, const TileSpec &spec)
+void QGeoMappingManagerEngine::handleReply(QGeoTiledMapReply *reply, const QGeoTileSpec &spec)
{
Q_D(QGeoMappingManagerEngine);
@@ -308,7 +308,7 @@ int QGeoMappingManagerEngine::managerVersion() const
return d_ptr->managerVersion;
}
-QList<MapType> QGeoMappingManagerEngine::supportedMapTypes() const
+QList<QGeoMapType> QGeoMappingManagerEngine::supportedMapTypes() const
{
Q_D(const QGeoMappingManagerEngine);
return d->supportedMapTypes;
@@ -320,7 +320,7 @@ QList<MapType> QGeoMappingManagerEngine::supportedMapTypes() const
Subclasses of QGeoMappingManagerEngine should use this function to ensure
that supportedMapTypes() provides accurate information.
*/
-void QGeoMappingManagerEngine::setSupportedMapTypes(const QList<MapType> &supportedMapTypes)
+void QGeoMappingManagerEngine::setSupportedMapTypes(const QList<QGeoMapType> &supportedMapTypes)
{
Q_D(QGeoMappingManagerEngine);
d->supportedMapTypes = supportedMapTypes;
@@ -564,13 +564,13 @@ QLocale QGeoMappingManagerEngine::locale() const
return d_ptr->locale;
}
-TileCache::CacheAreas QGeoMappingManagerEngine::cacheHint() const
+QGeoTileCache::CacheAreas QGeoMappingManagerEngine::cacheHint() const
{
Q_D(const QGeoMappingManagerEngine);
return d->cacheHint;
}
-void QGeoMappingManagerEngine::setCacheHint(TileCache::CacheAreas cacheHint)
+void QGeoMappingManagerEngine::setCacheHint(QGeoTileCache::CacheAreas cacheHint)
{
Q_D(QGeoMappingManagerEngine);
d->cacheHint = cacheHint;
@@ -587,7 +587,7 @@ QGeoMappingManagerEnginePrivate::QGeoMappingManagerEnginePrivate()
supportsTilting(false),
minimumTilt(0.0),
maximumTilt(0.0),
- cacheHint(TileCache::AllCaches),
+ cacheHint(QGeoTileCache::AllCaches),
started_(false),
stopped_(false) {}