marble
#include <RoutingManager.h>

Public Types | |
| enum | State { Downloading, Retrieved } |
Public Slots | |
| void | clearRoute () |
| void | retrieveRoute () |
| void | reverseRoute () |
| void | setGuidanceModeEnabled (bool enabled) |
Signals | |
| void | routeRetrieved (GeoDataDocument *route) |
| void | stateChanged (RoutingManager::State newState) |
Public Member Functions | |
| RoutingManager (MarbleModel *marbleModel, QObject *parent=0) | |
| ~RoutingManager () | |
| const AutoNavigation * | adjustNavigation () const |
| AlternativeRoutesModel * | alternativeRoutesModel () |
| RoutingProfile | defaultProfile (RoutingProfile::TransportType transportType) const |
| bool | guidanceModeEnabled () const |
| QString | lastOpenPath () const |
| QString | lastSavePath () const |
| void | loadRoute (const QString &filename) |
| RoutingProfilesModel * | profilesModel () |
| void | readSettings () |
| QColor | routeColorAlternative () const |
| QColor | routeColorHighlighted () const |
| QColor | routeColorStandard () const |
| RouteRequest * | routeRequest () |
| RoutingModel * | routingModel () |
| const RoutingModel * | routingModel () const |
| void | saveRoute (const QString &filename) const |
| void | setAutoNavigation (AutoNavigation *adjustNavigation) |
| void | setLastOpenPath (const QString &path) |
| void | setLastSavePath (const QString &path) |
| void | setRouteColorAlternative (QColor color) |
| void | setRouteColorHighlighted (QColor color) |
| void | setRouteColorStandard (QColor color) |
| void | setShowGuidanceModeStartupWarning (bool show) |
| bool | showGuidanceModeStartupWarning () const |
| void | writeSettings () const |
Public Member Functions inherited from QObject | |
| QObject (QObject *parent) | |
| QObject (QObject *parent, const char *name) | |
| virtual | ~QObject () |
| bool | blockSignals (bool block) |
| QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
| const QObjectList & | children () const |
| const char * | className () const |
| bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
| void | deleteLater () |
| void | destroyed (QObject *obj) |
| bool | disconnect (const QObject *receiver, const char *method) |
| bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
| void | dumpObjectInfo () |
| void | dumpObjectTree () |
| QList< QByteArray > | dynamicPropertyNames () const |
| virtual bool | event (QEvent *e) |
| virtual bool | eventFilter (QObject *watched, QEvent *event) |
| T | findChild (const QString &name) const |
| QList< T > | findChildren (const QRegExp ®Exp) const |
| QList< T > | findChildren (const QString &name) const |
| bool | inherits (const char *className) const |
| void | insertChild (QObject *object) |
| void | installEventFilter (QObject *filterObj) |
| bool | isA (const char *className) const |
| bool | isWidgetType () const |
| void | killTimer (int id) |
| virtual const QMetaObject * | metaObject () const |
| void | moveToThread (QThread *targetThread) |
| const char * | name () const |
| const char * | name (const char *defaultName) const |
| QString | objectName () const |
| QObject * | parent () const |
| QVariant | property (const char *name) const |
| void | removeChild (QObject *object) |
| void | removeEventFilter (QObject *obj) |
| void | setName (const char *name) |
| void | setObjectName (const QString &name) |
| void | setParent (QObject *parent) |
| bool | setProperty (const char *name, const QVariant &value) |
| bool | signalsBlocked () const |
| int | startTimer (int interval) |
| QThread * | thread () const |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
| bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
| bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
| bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
| bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
| QString | tr (const char *sourceText, const char *disambiguation, int n) |
| QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions inherited from QObject | |
| bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
| virtual void | childEvent (QChildEvent *event) |
| virtual void | connectNotify (const char *signal) |
| virtual void | customEvent (QEvent *event) |
| virtual void | disconnectNotify (const char *signal) |
| int | receivers (const char *signal) const |
| QObject * | sender () const |
| int | senderSignalIndex () const |
| virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
| QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
| objectName | |
Detailed Description
Delegates data retrieval and model updates to the appropriate routing provider.
Definition at line 37 of file RoutingManager.h.
Member Enumeration Documentation
| Enumerator | |
|---|---|
| Downloading | |
| Retrieved | |
Definition at line 42 of file RoutingManager.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
Definition at line 240 of file RoutingManager.cpp.
| Marble::RoutingManager::~RoutingManager | ( | ) |
Destructor.
Definition at line 251 of file RoutingManager.cpp.
Member Function Documentation
| const AutoNavigation * Marble::RoutingManager::adjustNavigation | ( | ) | const |
returns the instance of AutoNavigation This is a temporary location for AutoNavigation.
The code would be refactored soon.
Definition at line 322 of file RoutingManager.cpp.
| AlternativeRoutesModel * Marble::RoutingManager::alternativeRoutesModel | ( | ) |
Provides access to the model which contains a list of alternative routes.
Definition at line 312 of file RoutingManager.cpp.
|
slot |
Clear all via points.
Definition at line 454 of file RoutingManager.cpp.
| RoutingProfile Marble::RoutingManager::defaultProfile | ( | RoutingProfile::TransportType | transportType | ) | const |
Generates a routing profile with default settings for the given transport type.
Definition at line 342 of file RoutingManager.cpp.
| bool Marble::RoutingManager::guidanceModeEnabled | ( | ) | const |
Definition at line 520 of file RoutingManager.cpp.
| QString Marble::RoutingManager::lastOpenPath | ( | ) | const |
Return last directory the user opened a route from.
Definition at line 475 of file RoutingManager.cpp.
| QString Marble::RoutingManager::lastSavePath | ( | ) | const |
Return last directory the user saved a route to.
Definition at line 485 of file RoutingManager.cpp.
| void Marble::RoutingManager::loadRoute | ( | const QString & | filename | ) |
Opens the given filename (kml format) and loads the route contained in it.
Definition at line 337 of file RoutingManager.cpp.
| RoutingProfilesModel * Marble::RoutingManager::profilesModel | ( | ) |
Provides access to the model which contains all possible routing profiles.
Definition at line 256 of file RoutingManager.cpp.
| void Marble::RoutingManager::readSettings | ( | ) |
Restores a previously saved route request and route from disk, if any.
Definition at line 374 of file RoutingManager.cpp.
|
slot |
Retrieve a route suiting the routeRequest.
Definition at line 276 of file RoutingManager.cpp.
|
slot |
Reverse the previously requested route, i.e.
swap start and destination (and via points, if any)
Definition at line 448 of file RoutingManager.cpp.
| QColor Marble::RoutingManager::routeColorAlternative | ( | ) | const |
Get color for alternative route rendering.
Definition at line 515 of file RoutingManager.cpp.
| QColor Marble::RoutingManager::routeColorHighlighted | ( | ) | const |
Get color for highlighted route rendering.
Definition at line 505 of file RoutingManager.cpp.
| QColor Marble::RoutingManager::routeColorStandard | ( | ) | const |
Get color for standard route rendering.
Definition at line 495 of file RoutingManager.cpp.
| RouteRequest * Marble::RoutingManager::routeRequest | ( | ) |
Returns the current route request.
Definition at line 271 of file RoutingManager.cpp.
|
signal |
| RoutingModel * Marble::RoutingManager::routingModel | ( | ) |
Provides access to the routing model which contains a list of routing instructions describing steps to get from the source to the destination.
- See also
- retrieveDirections
Definition at line 261 of file RoutingManager.cpp.
| const RoutingModel * Marble::RoutingManager::routingModel | ( | ) | const |
Definition at line 266 of file RoutingManager.cpp.
| void Marble::RoutingManager::saveRoute | ( | const QString & | filename | ) | const |
Saves the current route to the file with the given filename.
Existing files will be overwritten. The route is saved in kml format.
Definition at line 332 of file RoutingManager.cpp.
| void Marble::RoutingManager::setAutoNavigation | ( | AutoNavigation * | adjustNavigation | ) |
Definition at line 317 of file RoutingManager.cpp.
|
slot |
Toggle turn by turn navigation mode.
Definition at line 379 of file RoutingManager.cpp.
| void Marble::RoutingManager::setLastOpenPath | ( | const QString & | path | ) |
Set last directory the user opened a route from.
Definition at line 470 of file RoutingManager.cpp.
| void Marble::RoutingManager::setLastSavePath | ( | const QString & | path | ) |
Set last directory the user saved a route to.
Definition at line 480 of file RoutingManager.cpp.
| void Marble::RoutingManager::setRouteColorAlternative | ( | QColor | color | ) |
Set color for alternative route rendering.
Definition at line 510 of file RoutingManager.cpp.
| void Marble::RoutingManager::setRouteColorHighlighted | ( | QColor | color | ) |
Set color for highlighted route rendering.
Definition at line 500 of file RoutingManager.cpp.
| void Marble::RoutingManager::setRouteColorStandard | ( | QColor | color | ) |
Set color for standard route rendering.
Definition at line 490 of file RoutingManager.cpp.
| void Marble::RoutingManager::setShowGuidanceModeStartupWarning | ( | bool | show | ) |
Set whether a warning message should be shown to the user before starting guidance mode.
Definition at line 460 of file RoutingManager.cpp.
| bool Marble::RoutingManager::showGuidanceModeStartupWarning | ( | ) | const |
Returns true (default) if a warning is shown to the user when starting guidance mode.
Definition at line 465 of file RoutingManager.cpp.
|
signal |
Directions and waypoints for the given route are being downloaded or have been retrieved – newState tells which of both.
| void Marble::RoutingManager::writeSettings | ( | ) | const |
Saves the current route request and the current route to disk.
Definition at line 327 of file RoutingManager.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:46 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Member Functions inherited from