Qt Mobility Reference Documentation

QGeoMappingManager Class Reference

The QGeoMappingManager class provides support for displaying and interacting with maps. More...

 #include <QGeoMappingManager>

Public Functions

~QGeoMappingManager ()
QGeoMapData * createMapData ( QGeoMapWidget * widget )
QString managerName () const
QMap<QString, QString> managerParameters () const
int managerVersion () const
QSize maximumImageSize () const
qreal maximumZoomLevel () const
QSize minimumImageSize () const
qreal minimumZoomLevel () const
void removeMapData ( QGeoMapData * mapData )
QList<QGeoMapWidget::MapType> supportedMapTypes () const

Detailed Description

The QGeoMappingManager class provides support for displaying and interacting with maps.

A QGeoMappingManager instance can create QGeoMapData instances with createMapData(). These instances can be used to contain and manage information concerning what a particular QGeoMapWidget is viewing.

The functions in this class will typically not be used by clients of this API, as the most common uses will only need to obtain a QGeoMappingManager instance and associate it with a QGeoMapWidget instance:

 QGeoServiceProvider serviceProvider("nokia");
 QGeoMappingManager *manager = serviceProvider.mappingManager();
 QGeoMapWidget *widget = new QGeoMapWidget(manager);

Member Function Documentation

QGeoMappingManager::~QGeoMappingManager ()

Destroys this QGeoMappingManager object.

QGeoMapData * QGeoMappingManager::createMapData ( QGeoMapWidget * widget )

Returns a new QGeoMapData instance for widget which will be managed by this manager.

QString QGeoMappingManager::managerName () const

Returns the name of the engine which implements the behaviour of this mapping manager.

The combination of managerName() and managerVersion() should be unique amongst the plugin implementations.

QMap<QString, QString> QGeoMappingManager::managerParameters () const

Returns the parameters used in the creation of this mapping manager.

int QGeoMappingManager::managerVersion () const

Returns the version of the engine which implements the behaviour of this mapping manager.

The combination of managerName() and managerVersion() should be unique amongst the plugin implementations.

QSize QGeoMappingManager::maximumImageSize () const

Returns the size of the largest map image which is supported by this manager.

An invalid size indicates that this manager places no restrictions on the maximum size of the map image.

qreal QGeoMappingManager::maximumZoomLevel () const

Returns the maximum zoom level supported by this manager.

Larger values of the zoom level correspond to more detailed views of the map.

QSize QGeoMappingManager::minimumImageSize () const

Returns the size of the smallest map image which is supported by this manager.

An invalid size indicates that this manager places no restrictions on the minimum size of the map image.

qreal QGeoMappingManager::minimumZoomLevel () const

Returns the minimum zoom level supported by this manager.

Larger values of the zoom level correspond to more detailed views of the map.

void QGeoMappingManager::removeMapData ( QGeoMapData * mapData )

Stops this manager from managing mapData.

QList<QGeoMapWidget::MapType> QGeoMappingManager::supportedMapTypes () const

Returns a list of the map types supported by this manager.


Copyright © 2009-2010 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Mobility Project 1.1.0