summaryrefslogtreecommitdiffstats
path: root/src/location/maps/qgeomappingmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/location/maps/qgeomappingmanager.cpp')
-rw-r--r--src/location/maps/qgeomappingmanager.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/location/maps/qgeomappingmanager.cpp b/src/location/maps/qgeomappingmanager.cpp
index 6cc8a5fe..37a59c57 100644
--- a/src/location/maps/qgeomappingmanager.cpp
+++ b/src/location/maps/qgeomappingmanager.cpp
@@ -123,6 +123,11 @@ QGeoMappingManager::QGeoMappingManager(QGeoMappingManagerEngine *engine, QObject
SLOT(threadStarted()),
Qt::QueuedConnection);
+ connect(d_ptr->engine,
+ SIGNAL(initialized()),
+ this,
+ SIGNAL(initialized()));
+
d_ptr->engine->moveToThread(d_ptr->thread);
QTimer::singleShot(0, d_ptr->thread, SLOT(start()));
}
@@ -136,6 +141,13 @@ QGeoMappingManager::~QGeoMappingManager()
}
/*!
+ \fn void QGeoMappingManager::initialized()
+
+ This signal is emitted when the mapping manager has been initialized
+ and is ready to be used.
+*/
+
+/*!
Returns the name of the engine which implements the behaviour of this
mapping manager.
@@ -232,6 +244,17 @@ bool QGeoMappingManager::supportsBearing() const
}
/*!
+ Return whether the manager has been initialized
+ (will be done automatically but may take some time).
+
+*/
+bool QGeoMappingManager::isInitialized() const
+{
+ return d_ptr->engine->isInitialized();
+}
+
+
+/*!
Return whether tilting is supported by this manager.
*/
bool QGeoMappingManager::supportsTilting() const